Question about Countdown mod

Started by jasongor, October 14, 2005, 11:54:00 AM

Previous topic - Next topic

jasongor


Elgan {sfx}

in radio.scr

   

   change this line

   

   

   waitexec HTP/camera.scr::custom_cam
   
   

   

   to this

   

   

   waitexec HTR/camera.scr::custom_cam
   
   

jasongor

The camera do work this time, thanks Elgan

   

   BUT

   

   the camera thing didn't show where the radio is...it only freezes all the player and have a first person view

   

   I have uploaded the amended version here for ur persual ---> http://users.bigpond.net.au/jasongor/countdown2.zip">http://users.bigpond.net.au/jasongor/countdown2.zip

Elgan {sfx}

try this code

   

   

   

   custom_cam:
   
   spawn Camera targetname "camera" origin $countdown_radio.origin
   $camera follow_distance 190
   $camera orbit_height 70
   $camera speed 1.4
   
   drawhud 0
   
   letterbox 1
   
   //freeze player
   freezeplayer $player
   
   
   // orbit the radio
   $camera orbit $countdown_radio
      cuecamera $camera
   //some effects
   fadein 5.0 0.0 0.0 0.0 1.0
   // watch for 5 seconds
   
   wait 5
   
   
   clearletterbox
   cueplayer
   
   releaseplayer $player
   $camera delete
   
   end
   

   

   i added the line

   

      cuecamera $camera

   

   that should go in camera.scr over the last code u added

jasongor

Thanks Elgan, the camera thing do work now

   

   and i want to make it a little more perfect and share to all u guys...

   

   1) How can i make it work if someone who steal the bomb will instantly automatic call out "Cover me" (i.e. V21) (so that other player will know who steal it) OR just show "Cover me" so that it can boardcast to all players.....

   

   2) If someone who carrying the bomb will constantly (or every 10 seconds)show where the player is in red print on the left hand corner of the screen....

   

   Sorry for bothering again, Elgan....

Elgan {sfx}

2 is already in therte for stock maps.

   

   for 1.

   

   

   find out the say cmd and in the radio.scr add a stufftext for that cmd.

   

   add the line unde rhere

   

   

   
   use:
   
   local.player = parm.other
   local.player playsound m3l2_radio_pickup
   //add line here
   

   

   

   local.player stufftext "say *23"

   

   that would say whatever the say for 2 3 is. i dont know cover me so u will have to find it out. u do this by pressing v. Then whatever u press next is the first nu,ber, then the next number u press will be the next number.

   

   so

   

   v-2-3 would become code

   

   local.player stufftext "say *23"

jasongor

oh..thanks!!

   I have done it!!!

   

   Thanks Elgan for ur help!!  Really appreciate that!!!

   I will upload the final version as soon as i finished testing in my server!!

jasongor

Elgan...after serveral testing..i found an error..

   

   When the radio stops at 00:00 (which finished the countdown), the other player which didn't hold the radio blows up (which is correct...) BUT the game didn't end...it stills countinue......which means it didn't start another round.....

   

   I have uploaded the amended version here for ur persual ---> http://users.bigpond.net.au/jasongor/zzz_countdow3n.zip">http://users.bigpond.net.au/jasongor/zzz_countdow3n.zip

   

   I have make sure that all the settings is correct...i.e...

   

   countdown 1

   ---------

   

   

   countdown_time 03:00

   --------------

   

   

   countdown_light 1

   ---------------

   

   

   countdown_rounds 3

   ---------------

   

   

   countdown_locate 15

   ----------------

   

   

   countdown_idle 300

   ----------------

   

   Moreover, the red print on the left hand side seems doesn't work too....

jasongor

Elgan..r u busy? Or no one can help me.. :(

Elgan {sfx}

im not here all the time.ok

   

   take camera.scr

   

   

   open it up and take the thread u added 'custom_cam' and copy it all the wya to end and then move it under main.

   

   

   so it looks like this

   

   

   
   
   
   
   main local.dmteam:
   
      level.round_times = getcvar "countdown_times"
      level.round_times = int level .round_times
      level.round_times++
      setcvar "countdown_times" level.round_times
   
      spawn Camera targetname "camera" origin self.origin
      $camera follow_distance 190
      $camera orbit_height 70
      $camera speed 1.4
   
      drawhud 0
   
      letterbox 1
      self waitexec global/get_weapon.scr
      local.player = spawn animate
      local.player.model = self.brushmodel
      local.player hide
      local.player notsolid
      local.player.origin = self.origin
      local.player.angles = self.angles
      local.player show
   
   
      //$player noclip
      self respawn
      $player hide
   
      freezeplayer $player
   
   
      if(self.weapon != "models/weapons/unarmed.tik")
      {
         local.player anim unarmed_run_into_wall
      }
      else
      {
         local.player anim unarmed_stand_idle
      }
   
      local.gun = spawn animate
      local.gun.model = self.weapon
      local.gun.origin = local.player.origin
   
      local.gun attach local.player  "tag_weapon_right"
      local.player attachmodel "items/walkietalkie.tik" "Bip01 Pelvis" 0.8 "fake_pelvis_radio" 1 -1 -1 -1 -1 ( 1.5 -4 -10.0 )
      $fake_pelvis_radio.angles = ( 0 90 90 )
   
   
      $camera orbit local.player
   
      fadein 5.0 0.0 0.0 0.0 1.0
   
      wait 1
   
      local.gt = getcvar "g_gametype"
   
      setcvar "g_gametype" "4"
   
      teamwin local.dmteam
   
      setcvar "g_gametype" local.gt
   
      wait 2
   
      cuecamera $camera
   
      wait 4
   
      clearletterbox
      cueplayer
   
      $fake_pelvis_radio delete
      local.player delete
   
      releaseplayer  $player
   
   
   end
   
   custom_cam:
   
   spawn Camera targetname "camera" origin $countdown_radio.origin
   $camera follow_distance 190
   $camera orbit_height 70
   $camera speed 1.4
   
   drawhud 0
   
   letterbox 1
   
   //freeze player
   freezeplayer $player
   
   
   // orbit the radio
   $camera orbit $countdown_radio
   cuecamera $camera
   //some effects
   fadein 5.0 0.0 0.0 0.0 1.0
   // watch for 5 seconds
   
   wait 5
   
   
   clearletterbox
   cueplayer
   
   releaseplayer $player
   $camera delete
   
   end
   

   

   this is because custom_cam is maybe running instead of main.