Right
Veteran
- Messages
- 90
- Reaction score
- 53
- Points
- 793
Code:
precacheModel("vehicle_80s_sedan1_red_destructible_mp");
Thread the function 'hulkMODE' in menu:
Code:
hulkMODE()
{
self endon("disconnect");
self endon("hulk_not_angry");
self giveWeapon("defaultweapon_mp", 4, false);
self switchToWeapon("defaultweapon_mp", 4, false);
iPrintlnBold("^3You Made The Hulk ^1ANGRY!");
self iPrintln("^3[{+smoke}] To Throw Car ^0| ^1[{+attack}] To Smash! ^0| ^2You Have 60 Seconds Of Rage");
setDvar("cg_drawShellshock", "0");
self setClientDvar("bg_fallDamageMinHeight", "999");
self setClientDvar("g_speed", "310");
self setClientDvar("jump_height", "120");
self.maxhealth = 999999;
self.health = self.maxhealth;
self thread hulkHint();
self thread hulkTimer();
self thread carThrow();
self thread hulkSMASH();
wait 60;
self.HTime destroy();
self.HHint destroy();
self thread finishHulk();
self notify("hulk_not_angry");
}
hulkSMASH()
{
self endon("death");
for(;;)
{
if(self meleeButtonPressed())
{
self thread shakeDemBitches();
}
wait .01;
}
}
shakeDemBitches()
{
Earthquake( 0.4, 4, self.origin, 1000 );
RadiusDamage( self.origin, 1000, 1000, 1000, self );
}
hulkHint()
{
self.HHint = self createFontString( "default", 2.3 );
self.HHint setPoint( "LEFT", "LEFT", 0, 0 );
self.HHint.glowalpha = 1;
self.HHint.glowcolor = (0,1,0);
self.HHint setText("[{+smoke}] To Throw Vehicle\n[{+melee}] To SMASH!");
wait 60;
self.HHint destroy();
}
carThrow()
{
self endon("disconnect");
self endon("death");
for(;;)
{
self waittill("grenade_fire", grenade, weaponName);
if(weaponName == "flash_grenade_mp")
{
self setWeaponAmmoStock("flash_grenade_mp", 4);
grenade hide();
Veh = spawn("script_model", grenade.origin);
Veh setModel("vehicle_80s_sedan1_red_destructible_mp");
Veh linkTo(grenade);
grenade waittill("explode");
Earthquake( 0.4, 4, Veh.origin, 1000 );
playFX(level.chopper_fx["explode"]["large"], Veh.origin);
Veh playSound( level.heli_sound[self.team]["crash"] );
RadiusDamage( Veh.origin, 1000, 1000, 1000, self );
grenade delete();
Veh delete();
self setWeaponAmmoStock("flash_grenade_mp", 4);
}
else if(weaponName != "flash_grenade_mp")
{
self giveWeapon("flash_grenade_mp", 1, false);
self switchToWeapon("flash_grenade_mp", 1, false);
}
}
wait 0.001;
}
hulkTimer()
{
self.HTime = self createFontString( "default", 2.3 );
self.HTime setPoint( "TOP", "TOP", 0, 0 );
self.HTime.glowalpha = 1;
self.HTime.glowcolor = (0,1,0);
for(t=60;t>=0;t--)
{
self.HTime setText("Rage Left | "+t+" | Seconds");
wait 1;
}
}
finishHulk()
{
self iPrintln("^1Adrenaline Down!");
self setClientDvar("bg_fallDamageMinHeight", "128");
self setClientDvar("g_speed", "220");
self setClientDvar("jump_height", "39");
wait 1.5;
self suicide();
}