Shield getting closer
Posted: Sun May 25, 2008 5:09 am
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.
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