i hav just made a cog that is meant to stop all projectiles in ur LOS but it only seems to stop most of the projectiles.
heres the cog
# Jedi Knight Cog Script
#
# shield.COG
#
# Description
#
#
# This Cog is Not supported by LucasArts Entertainment Co
symbols
thing player
message startup
message selected
message deselected
message pulse
message killed
end
# ========================================================================================
code
startup:
player = GetLocalPlayerThing();
return;
# ........................................................................................
selected:
Print("Shield Online");
SetPulse(0.00000000000000001);
return;
#.........................................................................................
deselected:
Print("Shield Offline");
SetPulse(0.0);
return;
#.........................................................................................
killed:
Print("Shield Offline");
SetPulse(0.0);
return;
#.........................................................................................
pulse:
bullet = FirstThingInView(player, 179, 15, 0x48);
bulletshooter = GetParentThing(bullet);
if((bulletshooter != player) && (GetThingParent(bullet) != player) && (VectorDist(GetThingPos(bullet), GetThingPos(player)) > 0.2))
{
StopThing(bullet);
}
return;
end
never posted cogs b4.
Do i just havta make the pulse a little faster to stop some from getting in?
and can some1 plz tell me how to post pics?
heres the cog
# Jedi Knight Cog Script
#
# shield.COG
#
# Description
#
#
# This Cog is Not supported by LucasArts Entertainment Co
symbols
thing player
message startup
message selected
message deselected
message pulse
message killed
end
# ========================================================================================
code
startup:
player = GetLocalPlayerThing();
return;
# ........................................................................................
selected:
Print("Shield Online");
SetPulse(0.00000000000000001);
return;
#.........................................................................................
deselected:
Print("Shield Offline");
SetPulse(0.0);
return;
#.........................................................................................
killed:
Print("Shield Offline");
SetPulse(0.0);
return;
#.........................................................................................
pulse:
bullet = FirstThingInView(player, 179, 15, 0x48);
bulletshooter = GetParentThing(bullet);
if((bulletshooter != player) && (GetThingParent(bullet) != player) && (VectorDist(GetThingPos(bullet), GetThingPos(player)) > 0.2))
{
StopThing(bullet);
}
return;
end
never posted cogs b4.
Do i just havta make the pulse a little faster to stop some from getting in?
and can some1 plz tell me how to post pics?