Results 1 to 3 of 3

Thread: [CoD4] Disable Health Regeneration

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private
    Join Date
    Oct 2013
    Posts
    48
    Thanks
    10
    Thanked 4 Times in 2 Posts

    [CoD4] Disable Health Regeneration

    Hey there..
    I'm trying to disable health regeneration in my mod.
    I know there is a dvar like "scr_player_healthregeneration" but setting it to "0" doesnt work.
    Because of that i tried to force the health:

    Code:
    _health()
    {
    	while(1)
    	{
    		health = self.health;
    		self.maxhealth = health;
    		self iprintln("Health:" + health);
    		wait 1;
    	}
    }
    Its working but its not the best way to do it.
    If the player gets damage, he's breathing all the time and if he gets enough damage to get <1 its like a godmode.
    Does someone knows a better way to disable health regeneration in cod4?
    Last edited by DjTranceFire; 7th March 2014 at 11:14.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •