Results 1 to 11 of 11
  1. #1
    jul920's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    33
    Reputation
    10
    Thanks
    3
    My Mood
    Tired

    [Solved]Heal people of your team?

    In my mod, I have a medic class.
    I wanna press 4 and i want people around me get heal, because there is no regeneration


    I tried the Team Fortress 2 code, but it only make bug the game

  2. #2
    [WhA]4FunPlayin's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Not here
    Posts
    757
    Reputation
    8
    Thanks
    169
    My Mood
    Lonely
    Code:
    owner = self;
    foreach(player in level.players)
    {
    if(owner.pers["team"] == player.pers["team"])
    {
    player.health = 100;
    player.maxhealth = player.health;
    }
    }

  3. #3
    jul920's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    33
    Reputation
    10
    Thanks
    3
    My Mood
    Tired
    OK thanks, but how I add it in my mod.

    I try this but it doesn't work.

    Code:
    Healer()
    {
    self endon ( "disconnect" );
    self endon ( "death" )
    	self notifyOnPlayerCommand( "4", "+actionslot 4" );
    	
    	while(1)
    	{
    	self waittill("4");
    	owner = self;
    	foreach(player in level.players)
    		{
    						if(owner.pers["team"] == player.pers["team"])
    						{
    						player.health = 100;
    						player.maxhealth = player.health;
    						}
    		}
    	}
    }

  4. #4
    TheSaboteur's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    wasteland,church
    Posts
    454
    Reputation
    10
    Thanks
    30
    My Mood
    Goofy
    u could use diehard function.. ;pp



    Bring a Ding Ding Baby!

  5. #5
    jul920's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    33
    Reputation
    10
    Thanks
    3
    My Mood
    Tired
    ok, what it suppose to do

  6. #6
    TheSaboteur's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    wasteland,church
    Posts
    454
    Reputation
    10
    Thanks
    30
    My Mood
    Goofy
    there is a Dvar to use a gampley mode iwner dind publish

    die hard.. u can bring ally's back alive....


    then when ever u press "5"(actionslot 2)
    the Dvar will be activated
    after like 10 sec it will be disabeld


    as a example


    thanks if it helped



    Bring a Ding Ding Baby!

  7. #7
    jul920's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    33
    Reputation
    10
    Thanks
    3
    My Mood
    Tired
    Does I need Last Stand?

  8. #8
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    It gives last stand if u are shot down but teammates can revive u

  9. #9
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,319
    My Mood
    Breezy
    This is how to health players near you:
    Code:
    doHealer()
    {
        self notifyOnPlayerCommand( "3", "+actionslot 3" );
        while(1)
        {
            self waittill("4");
            foreach(player in level.players)
            {
                if(distance(self.origin, player.origin) < 200)
                {
                    player.health =  player.maxhealth;
                }
            }
            wait 0.01;
        }
    }
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  10. #10
    Lemon30's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    66
    Reputation
    10
    Thanks
    10
    My Mood
    Devilish
    Code:
    startHeal()
    {
    level.heal = self.team;
    for(;;) //delete this to be a one-time use
    { //delete this to be a one-time use
    self notifyOnPlayerCommand( "4", "+actionslot 4" );
    self waittill( "4" );
    foreach ( player in level.players )
    	{	
    		if ( player.team != level.heal )
    			{
    			player thread doHeal(self.origin);
    			}
    	}
    } //delete this to be a one-time use. Or you can add a wait before this bracket to make it have a "cool-down"
    }
    
    doHeal( pos )
    {
    playerPos = self.origin;
    dist = distance( pos, playerPos );
    if (dist < 1000)//change the 1000 to any number you want. I feel that the 1000 is a reasonable distance though.
    	{
    	self.health = self.maxhealth;
    	}
    }
    Made by renegade770 for my Hexer Mod.

    You can change self.health = self.maxhealth; part to make AOE skills.
    GL.

  11. #11
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,923
    Reputation
    161
    Thanks
    3,096
    /marked as solved



Similar Threads

  1. [SOLVED]Invite people to Alteriwnet?
    By austin329 in forum Call of Duty Modern Warfare 2 Help
    Replies: 7
    Last Post: 07-18-2010, 04:00 AM
  2. Can people get your ip then hack you?
    By LuckyDropper in forum Combat Arms Discussions
    Replies: 31
    Last Post: 07-17-2010, 09:53 PM
  3. i love how people ignore your PM'S
    By karma123 in forum Flaming & Rage
    Replies: 7
    Last Post: 09-14-2009, 03:37 PM
  4. The fullproof way to win with your team in the death room.
    By hihiman1 in forum Combat Arms Hacks & Cheats
    Replies: 31
    Last Post: 08-06-2009, 01:54 AM
  5. How to get people into your Gameroom!!
    By iTzAlViN in forum Combat Arms Hacks & Cheats
    Replies: 40
    Last Post: 08-28-2008, 12:34 PM