Omaha Beach Mod

Started by wcSki, December 13, 2005, 11:06:45 PM

Previous topic - Next topic

unionjack

ok ill let u know i have a few but its bed time for me work next :(

Cobra {sfx}

Sleep? What is that?

wcSki

Hey cobra I downloaded the 1st one you put up. It works great but I do have a small request. I would like to add in text so people know why they were killed... I tried doing it, but it spams the text like 5 times when I am blown up... any way to make it just print each line of text once per kill??

   

   
Killem:
      local.player = parm.other
       if (local.player.dmteam == allies)
       {
       end
       }
       if (( local.player.dmteam == "axis" ) && ( isAlive local.player == 1 ))
      {
      local.player playsound arty_leadin
      wait 1.5
      local.player thread spawn_fx models/emitters/explosion_mine.tik
      local.player thread spawn_fx2 models/emitters/explosion_bridge.tik
      wait 3 // added this
      iprintln_noloc "Axis Are Not Allowed Past Trench" // and this
      local.player stufftext "say I Died When I Passed The Trench!" // and this
      }
   end

   

   

   Thanks for your help!!

   Ski

Cobra {sfx}

Because it is triggering all the time is the reason, this way will work ...

   

   

   Beach_Guard:
      spawn trigger_multipleall "targetname" "BGUARD"
      $BGUARD.origin = ( 595.01 -3430.48 -400 )
      $BGUARD setsize ( -4000 -800 -150 ) ( 4000 800 50 )
      $BGUARD waittill trigger
      //$BGUARD message
      $BGUARD setthread Killem
   end
   
   Killem:
      local.player = parm.other
       if (local.player.dmteam == allies || local.player.flying == 1)
       {
       end
       }
   $BGUARD nottriggerable
      parm.other playsound arty_leadin
      wait 1.5
      parm.other thread spawn_fx models/emitters/explosion_mine.tik
      parm.other thread spawn_fx2 models/emitters/explosion_bridge.tik // optional secondary fx
   end
   
   spawn_fx local.fx:
      local.temp = spawn script_model model local.fx
      local.temp.origin = self.origin
      local.temp scale 1.3
      local.temp notsolid
      local.temp anim start
      radiusdamage local.temp 200 200
      iprintln_noloc "*** The Beach Area Is Off-Limits To Axis Players ***" // your message
      parm.other stufftext "say I Died When I Passed The Trench!" // and this
      wait 2
      $BGUARD triggerable
      wait 3
      local.temp remove
   end
   
   // optional secondary fx explosion bit
   spawn_fx2 local.fx:
      local.temp = spawn script_model model local.fx
      local.temp.origin = self.origin
      local.temp scale .5
      local.temp notsolid
      local.temp anim start
      wait 5
      local.temp remove
   end
   

   

   No worries about the help :)
Sleep? What is that?

wcSki

thanks cobra... that worked great!

   

   Ski

Cobra {sfx}

Sleep? What is that?

Vince

Ahh yes, this brings me back. I learned loooong ago never to put anything texting script within a loop.