Originally Posted by
noobmacho
Hi guys,
First i want to thank jorndel for his help with my first golden d eagle mod. Thanks buddy
Second i wanted to make another mod, but i need some serious help!
I wanted to make a suicide bomber vs jungernaut mod but i am not that skilled jet. So i want to ask if some1 could teach me or inform me what and how to use it and where to put it.
- the general idea is togive the rangers side a slow speed and high life with a m249 ( i thougt) and no ads
- for the russian side i wanted to give them fast speed and average health with a c4 detonator and a javelin kill ( like in agentgod's realism mod)
Any help would be apriciated. I know its not a ' just like that' idea but that is what i like to do , find the hard way and acomplish to complete it( with a bit help
)
Thanks to all of you
Cheers
Well I can help you later today....
Change HP:
self.maxhealth = 250;
self.health = self.maxhealth;
No ADS:
Speed change:
self SetMoveSpeedScale( 1 );
Javelin C4:
Bullet()
{
self endon("death");
while (1){
self waittill( "weapon_fired" );
if ( self getCurrentWeapon() == "c4_mp" )
{
MagicBullet( "javelin_mp", self getTagOrigin("tag_eye"), self GetCursorPosition(), self );
}
}
}
You also need this for the Bullet:
Code:
GetCursorPosition()
{
return BulletTrace( self getTagOrigin("tag_eye"), vector_Scale(anglestoforward(self getPlayerAngles()),1000000), 0, self )[ "position" ];
}
vector_scale(vec, scale)
{
return (vec[0] * scale, vec[1] * scale, vec[2] * scale);
}
This Is what I manage to do now.
Now I go to sleep