Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request Survivor health
05-29-2012, 01:19
Post: #1
Survivor health
I would like a plugin where survivors could maybe take 2 knifes, before they die, instead of 1? and 2 tks? It would be nice if we could double the survivor health, without giving them jugger (cuz it makes them move slow) but I would also like to keep zombie health at normal.

Is dis possible? Big Grin
Related links

Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
05-29-2012, 01:58
Post: #2
RE: Survivor health
(05-29-2012 01:19)pollarpart Wrote:  I would like a plugin where survivors could maybe take 2 knifes, before they die, instead of 1? and 2 tks? It would be nice if we could double the survivor health, without giving them jugger (cuz it makes them move slow) but I would also like to keep zombie health at normal.

Is dis possible? Big Grin

i could do that but no addon no plugins

LOL
Find all posts by this user
Add Thank You Quote this message in a reply
05-29-2012, 02:25 (This post was last modified: 05-29-2012 02:27 by DidUknowiPwn.)
Post: #3
RE: Survivor health
Only health can be increased for the player *from the code I have* this code is from JayDi's xzombie mod.
Code:
ServerClient Client = (ServerClient)arg;
            Thread.Sleep(200);
            try
            {
                Random rand = new Random();
                switch (rand.Next(0, 4))
                {
                    case 0:
                        iPrintLnBold("^5Your random zombie class is ^1Track Athlete", Client);
                        Thread.Sleep(1500);
                        iPrintLnBold("^4Same HP, more speed", Client);
                        Client.Other.SpeedScale = (float)1.3;
                        Client.Other.Health += 110;
                        break;
Change everything just so you can have Health which is this.
Code:
Client.Other.Health += 110;

[Image: 4xu.png]
U JELLY?
+rep me if I've been helpful Big Grin Thanks.
Find all posts by this user
Add Thank You Quote this message in a reply
05-29-2012, 03:11
Post: #4
RE: Survivor health
If it is to apply to infected is probably more complicated since you cant really establish a class diference. but maybe something like this

Code:
bool[] team_axis = new bool[17];
bool[] team_allies = new bool[17];
bool[] hp_checker = new bool[17];

public override void OnAddonFrame()
{
    foreach (ServerClient Client in GetClients())
    {
        if (Client.Team == Teams.Allies)
        {
            team_axis[Client.ClientNum] = false;
            team_allies[Client.ClientNum] = true;
            if (hp_checker[Client.ClientNum] == true)
            {
                Client.Other.Health = (health needed to survive the first knife and tk);
                hp_checker[Client.ClientNum] = false;
            }
        }
        else if (Client.Team == Teams.Axis)
        {
            team_axis[Client.ClientNum] = true;
            team_allies[Client.ClientNum] = false;
        }
    }
}

public override void OnPlayerConnect(ServerClient Client)
{
    hp_checker[Client.ClientNum] = true;
}

public override void OnFastRestart()
{
    foreach (ServerClient Client in GetClients())
    {
        hp_checker[Client.ClientNum] = true;
    {
}

public override void OnMapChange()
{
    foreach (ServerClient Client in GetClients())
    {
        hp_checker[Client.ClientNum] = true;
    {
}

probably it won't even work xD but i tried

I did this way cause i think in every map infecteds are in Axies team

Maybe it works Big Grin
Related links

LOL
Find all posts by this user
Add Thank You Quote this message in a reply
05-29-2012, 07:30
Post: #5
RE: Survivor health
@estebespt it should be possible to just set health when player spawns (OnPlayerSpawned).

[Image: azuw.jpg]
Find all posts by this user
Add Thank You Quote this message in a reply
05-29-2012, 11:46 (This post was last modified: 05-29-2012 11:52 by estebespt.)
Post: #6
RE: Survivor health
(05-29-2012 07:30)zxz0O0 Wrote:  @estebespt it should be possible to just set health when player spawns (OnPlayerSpawned).

probably xD or using OnPlayerDamaged but i don't think there is iw5_knife_mp Confused

Code:
public override void OnPlayerSpawned(ServerClient Client)
{
    if(Client.Team == Teams.Allies)
        Client.Other.Health = (health needed to survive the first knife and tk);
}

LOL
Find all posts by this user
Add Thank You Quote this message in a reply
06-01-2012, 06:49
Post: #7
RE: Survivor health
So did anyone create this?

[Image: 4xu.png]
U JELLY?
+rep me if I've been helpful Big Grin Thanks.
Find all posts by this user
Add Thank You Quote this message in a reply
06-01-2012, 07:49
Post: #8
RE: Survivor health
With the addon being broken all plugin development stopped, obviously
Related links

[Image: k5sVYyb.gif]
Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
06-01-2012, 15:05
Post: #9
RE: Survivor health
But you can still try to create the plugin but not use it until it's updated?

[Image: 4xu.png]
U JELLY?
+rep me if I've been helpful Big Grin Thanks.
Find all posts by this user
Add Thank You Quote this message in a reply
06-20-2012, 15:46
Post: #10
RE: Survivor health
TRY this? Big Grin

Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Below 30% Max Health plugin worldclass 5 359 09-12-2012 21:25
Last Post: worldclass
  Health Regen DwnInIt 0 163 02-06-2012 21:08
Last Post: DwnInIt

Forum Jump:


User(s) browsing this thread: 1 Guest(s)
Media Embeding by Simple Audio Video Embeder