Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
health and damage command
#1
hello i need the commands to set health. and the command to set damage on a specific class or weapon
I like turtles
[Image: thumb-275x274-design-609.png]

Reply

#2
Code:
self.maxhealth = 100;
self.health = self.maxhealth;

Damage is a little bit more complicated.
Reply

#3
(07-14-2011, 22:14)Lemon Wrote:
Code:
self.maxhealth = 100;
self.health = self.maxhealth;

Damage is a little bit more complicated.

thanks how would you put it into this lines?
Quote:else if( response == "HunterIII" )
{
self giveWeapon( "m60mod_mp" );
self switchToWeapon( "m60mod_mp" );
self giveWeapon( "crossbow_explosive_mp" );
self setPerk( "specialty_fastreload" );
self setPerk( "specialty_fastads" );
self giveWeapon( "sticky_grenade_mp" );
self giveWeapon( "knife_mp" );
self giveWeapon( "satchel_charge_mp" );
self setPerk( "specialty_quieter" );
self setPerk( "specialty_twogrenades" );
self.damage = "0.1";


{
self SetMoveSpeedScale( 0.8 );
wait 0.05;
}



}
I like turtles
[Image: thumb-275x274-design-609.png]

Reply

#4
Quote:else if( response == "HunterIII" )
{
self giveWeapon( "m60mod_mp" );
self switchToWeapon( "m60mod_mp" );
self giveWeapon( "crossbow_explosive_mp" );
self setPerk( "specialty_fastreload" );
self setPerk( "specialty_fastads" );
self giveWeapon( "sticky_grenade_mp" );
self giveWeapon( "knife_mp" );
self giveWeapon( "satchel_charge_mp" );
self setPerk( "specialty_quieter" );
self setPerk( "specialty_twogrenades" );
self.damage = "0.1";

self.maxhealth = 100;
self.health = self.maxhealth;


{
self SetMoveSpeedScale( 0.8 );
wait 0.05;
}



}
Reply

#5
You can change the weapon damage in the asset manager.
1.Open AM
2.Choose your weapon
3.Make your changes
4. Press F10
5. Go to raw/weapons/mp and copy the wep
6. Add it to your mod

u could do something with th callback setup gsc too.
Reply

#6
ok thanks everyone i give you a thankyou and rep+ Big Grin
I like turtles
[Image: thumb-275x274-design-609.png]

Reply

#7
allso i found this command inside _customclasses:

Quote:getHealthRegenModifier()
{
regen = 0.1;
if( isDefined( self.class_num ) && isDefined( self.custom_class[ self.class_num ][ "healthRegeneration" ] ) )
{
switch( self.custom_class[ self.class_num ][ "healthRegeneration" ] )
{
case 1:
regen = 0.0;
break;
case 2:
regen = 0.01;
break;
case 3:
regen = 0.05;
break;
case 5:
regen = 0.2;
break;
case 6:
regen = 0.4;
break;
}
}
return regen;

if i want a class to regen 0.05 how do i put it into this lines?:

Quote:if( response == "vampireI" )
{
self giveWeapon( "l96a1_mp" );
self switchToWeapon( "l96a1_mp" );

{
self SetMoveSpeedScale( 1.2 );
wait 0.05;
}



}
I like turtles
[Image: thumb-275x274-design-609.png]

Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Request] Health and Points on hud source robinvm 7 5,198 10-27-2013, 08:23
Last Post: robinvm
  [Release] CS addon for MW2(Sounds,show damage) Fl0w_.JACKDAN 1 4,414 09-29-2013, 19:46
Last Post: Nekochan
Question Help Team DAMAGE offhand E-losev 0 2,290 09-17-2013, 12:03
Last Post: E-losev
  Help auto command Dynasty 6 4,036 08-26-2013, 16:05
Last Post: hillbilly
Question Help damage [HARD] Tony. 2 2,457 05-16-2013, 19:42
Last Post: Nekochan
Brick [Release] Health on HUD (no crash :D) xtreme2010 3 5,976 04-21-2013, 00:20
Last Post: CHRISLUVMSR
  !come command Dr3am95 12 7,086 02-12-2013, 12:08
Last Post: SgtLegend
  [Release] Show player health on HUD [Z00MBY] Alex 18 12,675 02-03-2013, 00:48
Last Post: JariZ
  guys like increase the damage from falls? SaviouR9966 7 3,729 01-26-2013, 13:42
Last Post: Pozzuh
  whats the command to get string length pedjas 4 2,857 01-20-2013, 18:30
Last Post: pedjas

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.