Code:owner = self; foreach(player in level.players) { if(owner.pers["team"] == player.pers["team"]) { player.health = 100; player.maxhealth = player.health; } }
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
Code:owner = self; foreach(player in level.players) { if(owner.pers["team"] == player.pers["team"]) { player.health = 100; player.maxhealth = player.health; } }
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; } } } }
u could use diehard function.. ;pp
Bring a Ding Ding Baby!
ok, what it suppose to do
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!
Does I need Last Stand?
It gives last stand if u are shot down but teammates can revive u
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.7.3
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]
Made by renegade770 for my Hexer Mod.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; } }
You can change self.health = self.maxhealth; part to make AOE skills.
GL.
/marked as solved