Code:
RPGShooter()
{
self endon("death");
for(;;){
self waittill ("weapon_fired");
forward = self getTagOrigin("tag_eye");
end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
location = BulletTrace( forward, end, 0, self )[ "position" ];
MagicBullet( "rpg_mp", forward, location, self );}
}
vector_Scal(vec, scale)
{
vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
return vec;
}
Replace rpg_mp with the thing you want,
Code:
ac130_105mm_mp
ac130_40mm_mp
ac130_25mm_mp
stinger_mp
javelin_mp
rpg_mp
And probably lots more