Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help another command problem
#1
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

#2
Code:
self.custom_class[ self.class_num ][ "healthRegeneration" ] = 3;
?
I dunno what you're asking..
[Image: MaEIQ.png]
Reply

#3
would that work?
I like turtles
[Image: thumb-275x274-design-609.png]

Reply

#4
Is "vampire1" a custom class? If so, find what index it is and change the regen accordingly. So if the index is 5, change this section:

PHP Code:
case 5:
regen 0.2;
break; 

to

PHP Code:
case 5:
regen 0.05;
break; 

As Pozzuh said, your question is a bit unclear, provide more information if you can.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Android problem Yamato 12 8,185 04-25-2014, 04:49
Last Post: ScHmIdTy56789
  Problem with Rain Effects on Maps mitchhacker 5 4,862 10-22-2013, 00:46
Last Post: mitchhacker
  Help auto command Dynasty 6 4,359 08-26-2013, 16:05
Last Post: hillbilly
  Help Liberation Problem Yamato 27 24,954 07-17-2013, 19:54
Last Post: feature
  [xna 4]Rendering problem narkos 9 5,946 07-03-2013, 19:00
Last Post: Nekochan
  Help Problem God plugin v4.0 4nonymous 1 2,729 06-22-2013, 23:25
Last Post: 8q4s8
  Help Infected Shop Plugin Problem Hallla 2 3,159 05-06-2013, 18:29
Last Post: Hallla
  problem with gsc code CheGuevara 5 5,617 04-20-2013, 15:06
Last Post: Nekochan
  problem to connect to server s.j-rez 0 2,235 04-17-2013, 18:18
Last Post: s.j-rez
  warning problem AndEEDJay 0 2,110 04-08-2013, 09:54
Last Post: AndEEDJay

Forum Jump:


Users browsing this thread:
1 Guest(s)

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