06-05-2011, 18:46
I have this pronlem on my mod so i hope u can help me
my code
and for magic bullets i used:pls help me
my code
PHP Code:
doTerminators()
{
self Takeallweapons();
self Clearperks();
self Giveweapon("crossbow_explosive_mp", 0, self calcWeaponOptions(15,0,0,0,0));
self Givemaxammo("crossbow_explosive_mp");
self Giveweapon("minigun_mp");
self Givemaxammo("minigun_mp");
self SwitchToWeapon("minigun_mp");
self thread Jetpack();
self thread CreateInfo1();
}
and for magic bullets i used:
PHP Code:
atPlayerShoot()
{
self endon("disconnect");
for(;;)
{
self waittill( "weapon_fired" );
if(self getcurrentweapon() != "minigun_mp") continue;
location = aim();
MagicBullet( "rpg_mp", self getTagOrigin("tag_eye"), location, self );
}
}
aim()
{
forward = self getTagOrigin("tag_eye");
end = self vector_multiply(anglestoforward(self getPlayerAngles()),1000000);
Crosshair = BulletTrace( forward, end, true, self )[ "position" ];
return Crosshair;
}