i useta b I_Chop_Ur_PP and some of u mite remember me posting a shield cog and heres it.
# Jedi Knight Cog Script
#
# shield.COG
#
# Description
#
#
# This Cog is Not supported by LucasArts Entertainment Co
symbols
thing player
message startup
message pulse
message killed
message activated
end
# ========================================================================================
code
startup:
player = GetLocalPlayerThing();
switch = 1;
return;
#.........................................................................................
killed:
Print("Shield Offline");
SetPulse(0.0);
ClearThingFlags(player, 0x4);
switch = 1;
return;
#.........................................................................................
pulse:
bullet = FirstThingInView(player, 179, 15, 0x48);
while(bullet != -1)
{
bulletshooter = GetThingParent(bullet);
if(bulletshooter != player && GetThingParent(bullet) != player && VectorDist(GetThingPos(bullet), GetThingPos(player)) > 0.2) StopThing(bullet);
bullet = NextThingInView();
}
return;
#.........................................................................................
activated:
if(switch == 1)
{
SetThingFlags(player, 0x4);
Print("Shield Online");
SetPulse(0.00000000000000001);
switch = 0;
}
else
{
ClearThingFlags(player, 0x4);
Print("Shield Offline");
SetPulse(0.0);
switch = 1;
}
return;
end
i just wanna know wut u all think how good i am doing and c if it has any flaws that i didnt notice.
# Jedi Knight Cog Script
#
# shield.COG
#
# Description
#
#
# This Cog is Not supported by LucasArts Entertainment Co
symbols
thing player
message startup
message pulse
message killed
message activated
end
# ========================================================================================
code
startup:
player = GetLocalPlayerThing();
switch = 1;
return;
#.........................................................................................
killed:
Print("Shield Offline");
SetPulse(0.0);
ClearThingFlags(player, 0x4);
switch = 1;
return;
#.........................................................................................
pulse:
bullet = FirstThingInView(player, 179, 15, 0x48);
while(bullet != -1)
{
bulletshooter = GetThingParent(bullet);
if(bulletshooter != player && GetThingParent(bullet) != player && VectorDist(GetThingPos(bullet), GetThingPos(player)) > 0.2) StopThing(bullet);
bullet = NextThingInView();
}
return;
#.........................................................................................
activated:
if(switch == 1)
{
SetThingFlags(player, 0x4);
Print("Shield Online");
SetPulse(0.00000000000000001);
switch = 0;
}
else
{
ClearThingFlags(player, 0x4);
Print("Shield Offline");
SetPulse(0.0);
switch = 1;
}
return;
end
i just wanna know wut u all think how good i am doing and c if it has any flaws that i didnt notice.