Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request Survivor health
#1
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
Reply

#2
(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
Reply

#3
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;
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#4
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
LOL
Reply

#5
@estebespt it should be possible to just set health when player spawns (OnPlayerSpawned).
[Image: azuw.jpg]
Reply

#6
(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
Reply

#7
So did anyone create this?
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#8
With the addon being broken all plugin development stopped, obviously
Reply

#9
But you can still try to create the plugin but not use it until it's updated?
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#10
TRY this? Big Grin
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Request] Health and Points on hud source robinvm 7 5,594 10-27-2013, 08:23
Last Post: robinvm
Brick [Release] Health on HUD (no crash :D) xtreme2010 3 6,218 04-21-2013, 00:20
Last Post: CHRISLUVMSR
  [Suggestion]:Survivor Wallpaper KrypTiK 5 3,262 02-17-2013, 17:29
Last Post: Rendflex
  [Release] Show player health on HUD [Z00MBY] Alex 18 13,405 02-03-2013, 00:48
Last Post: JariZ
Video Preview Soul Survivor [Z00MBY] Alex 4 2,644 01-08-2013, 14:56
Last Post: Nekochan
  Health,regenerate, and message changes help mbakerinnv 4 3,494 11-02-2012, 18:12
Last Post: mbakerinnv
  Health and damage and custom comments mbakerinnv 1 2,008 11-01-2012, 15:09
Last Post: d0h!
  [Release] Health Icon (By Yamato) Rendflex 25 13,599 10-12-2012, 14:04
Last Post: momo5502
  Below 30% Max Health plugin worldclass 5 3,573 09-12-2012, 21:25
Last Post: worldclass
  [Release] Animated Health Bar from Minecraft Romuald27 2 4,465 07-22-2012, 18:44
Last Post: Romuald27

Forum Jump:


Users browsing this thread:
2 Guest(s)

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