Shield getting closer

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
Wierdo
Corporal
Posts: 47
Joined: Wed Jan 09, 2008 11:15 pm
Location: Winfield, KS

Shield getting closer

Post by Wierdo »

I now have it to where bullets will pass from the local.player out, but not in. Also, the dog always attacks the player now! In order to get the shield damaged, I need to place a trigger_multiple around the shield and have it follow the player.

My trigger is a primative cylinder, as is my shield. How do I best attach it? Bind, Attach, Glue? Every method I use seems to cause odd behaviour. when I move, the trigger seems to wonder all over the level randomly. Sometimes, it accepts damage from both sides, and others, not at all.

Code: Select all

shields: 
   $shielding waittill trigger
   local.player=parm.other
   local.corona = spawn script_model model "models/fx/dummy.tik"
   local.corona.origin = local.player.origin
   local.corona notsolid
   local.corona glue local.player
   local.corona targetname "corona"
   wait .1
   $shield moveWest 128
   $shield time .05
   $shield waitmove
   $shield bind $corona
   wait .1
   $shield_trig glue $shield
   $shield_trig thread shield_init
end

shield_init:

level.shields = int self.health
showmenu hud_shields
setcvar shields level.shields

   if (level.shields > 0)
   {
      wait .1
      goto shield_init
   }
   wait .1
   hidemenu hud_shields
   $shield remove
   $shield_trig remove
   $corona remove
end
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

It's silly to make a cylinder of your trigger, due to the way mohaa works only its axis-aligned bounding box counts (i.e. a trigger can only be a box).
Image
Post Reply