Thread Rating:
  • 2 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Release Juggernaut plugin for infected
#21
(12-01-2012, 22:52)koro35 Wrote: I have no model set for it as you can see in the code
there was a glitch with the model ill try and fix asap /tommorow

ok sorted that with @ [Z00MBY] Alex code mp_fullbody_ally_juggernaut

just need it to reset now when the jug gets killed
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#22
Aha I tryed that code, but then I couldn't be knived, I hope only I have this problem, and not other people Tongue.
And btw, you also need to do the hands for the look.
[Image: b_560_95_1.png]
[Image: hax0r3ez.gif]
Reply

#23
The model should automaticly reset since it gets a new model for the infected. And the bug with the knife i dont think is only us 99irock i think its for everyone
[Image: 24gu1a8.png]
Reply

#24
the jug can get knifed on mine ok.
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#25
i've tried a few combinations to view hands but none seem to work, any ideas?
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#26
Can you maybe post ur source for ur juggernaut, I Wanne see the differents between our code
[Image: b_560_95_1.png]
[Image: hax0r3ez.gif]
Reply

#27
(12-08-2012, 15:12)99IRock Wrote: Can you maybe post ur source for ur juggernaut, I Wanne see the differents between our code

This was for all players to use i even edited so infected could get 1, seems to go down well, i nulled out server print as it spammed the console. Also used the opforce Model for survivors and ally for infect.

Code:
using System;
using Addon;
using System.Timers;

namespace plugin_test
{
    //" : CPlugin" is needed to inherit the functions
    public class plugin_test : CPlugin
    {
        //VARIABLES
        bool firstjugg = false;
        //
        public override void OnMapChange()
        {
            firstjugg = false;
        }

        public override void OnServerLoad()
        {
            ServerPrint("Juggernaut by Reckless/koro35 and RedRum/Irock loaded");
        }

        public void JuggerFunc(ServerClient Client)
        {
            iPrintLnBold("^1|" + Client.Name + " Got juggernaut|", null);
            //int PerkID = GetPerk("specialty_fastreload");
            int fjugg = GetWeapon("iw5_p99_mp");
            //Client.Other.PrimaryWeaponAkimbo = true;
            //Client.Other.SecondaryWeaponAkimbo = true;
            Client.Other.MaxHealth = 355;
            Client.Other.Health = 355;
            Client.Other.SetPlayerModel("mp_fullbody_opforce_juggernaut");
            int fjugg1 = GetWeapon("iw5_riotshieldjugg_mp");
            //Client.Ammo.SecondaryAmmoClip = 35;
            //Client.Ammo.SecondaryAmmo = 15;
            Client.Ammo.PrimaryAmmoClip = 45;
            Client.Ammo.PrimaryAmmo = 15;
            Client.Other.PrimaryWeapon = fjugg;
            Client.Other.CurrentWeapon = fjugg;
            Client.Other.CurrentWeapon = fjugg1;
            Client.Other.SecondaryWeapon = fjugg1;
            firstjugg = true;
        }



        public override ChatType OnSay(string Message, ServerClient Client)
        {
            //ServerPrint("Player " + Client.Name + "said " + Message);
            if (Client.Team == Teams.Allies)
            {
                if (Message == "!jugg2")
                {
                    if (firstjugg == false)
                    {
                        JuggerFunc(Client);
                        return ChatType.ChatNone;
                    }
                    else if (firstjugg == true)
                    {
                        TellClient(Client.ClientNum, "^1Jugger already taken, ^3faster next time!", true);
                        return ChatType.ChatNone;
                    }
                }
            }
            else if (Client.Team == Teams.Axis)
            {
                if (Message == "!jugg2")
                {
                    TellClient(Client.ClientNum, "^1You can't have jugger!", true);
                    return ChatType.ChatNone;
                }
            }
            return ChatType.ChatContinue;
        }
    }
}
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#28
Use [code] tags.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#29
(12-08-2012, 19:15)hillbilly Wrote:
(12-08-2012, 15:12)99IRock Wrote: Can you maybe post ur source for ur juggernaut, I Wanne see the differents between our code

This was for all players to use i even edited so infected could get 1, seems to go down well, i nulled out server print as it spammed the console. Also used the opforce Model for survivors and ally for infect.

Code:
using System;
using Addon;
using System.Timers;

namespace plugin_test
{
    //" : CPlugin" is needed to inherit the functions
    public class plugin_test : CPlugin
    {
        //VARIABLES
        bool firstjugg = false;
        //
        public override void OnMapChange()
        {
            firstjugg = false;
        }

        public override void OnServerLoad()
        {
            ServerPrint("Juggernaut by Reckless/koro35 and RedRum/Irock loaded");
        }

        public void JuggerFunc(ServerClient Client)
        {
            iPrintLnBold("^1|" + Client.Name + " Got juggernaut|", null);
            //int PerkID = GetPerk("specialty_fastreload");
            int fjugg = GetWeapon("iw5_p99_mp");
            //Client.Other.PrimaryWeaponAkimbo = true;
            //Client.Other.SecondaryWeaponAkimbo = true;
            Client.Other.MaxHealth = 355;
            Client.Other.Health = 355;
            Client.Other.SetPlayerModel("mp_fullbody_opforce_juggernaut");
            int fjugg1 = GetWeapon("iw5_riotshieldjugg_mp");
            //Client.Ammo.SecondaryAmmoClip = 35;
            //Client.Ammo.SecondaryAmmo = 15;
            Client.Ammo.PrimaryAmmoClip = 45;
            Client.Ammo.PrimaryAmmo = 15;
            Client.Other.PrimaryWeapon = fjugg;
            Client.Other.CurrentWeapon = fjugg;
            Client.Other.CurrentWeapon = fjugg1;
            Client.Other.SecondaryWeapon = fjugg1;
            firstjugg = true;
        }



        public override ChatType OnSay(string Message, ServerClient Client)
        {
            //ServerPrint("Player " + Client.Name + "said " + Message);
            if (Client.Team == Teams.Allies)
            {
                if (Message == "!jugg2")
                {
                    if (firstjugg == false)
                    {
                        JuggerFunc(Client);
                        return ChatType.ChatNone;
                    }
                    else if (firstjugg == true)
                    {
                        TellClient(Client.ClientNum, "^1Jugger already taken, ^3faster next time!", true);
                        return ChatType.ChatNone;
                    }
                }
            }
            else if (Client.Team == Teams.Axis)
            {
                if (Message == "!jugg2")
                {
                    TellClient(Client.ClientNum, "^1You can't have jugger!", true);
                    return ChatType.ChatNone;
                }
            }
            return ChatType.ChatContinue;
        }
    }
}

how could i add an extra jugg and only let each player use 1 jugg per map?
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#30
hey
can you release the plugin for your shop the plugin im using right now has major issues...
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Wink Plugin with !ban !kick and !tampban clemi555 3 4,167 11-09-2013, 09:21
Last Post: clemi555
  AntiNoScope Plugin clemi555 5 4,748 11-08-2013, 19:13
Last Post: clemi555
  [Release] Bunker Plugin 1.3 archit 68 41,562 10-30-2013, 11:59
Last Post: clacki
Thumbs Up [Release] AllInOne! for infected robinvm 4 4,744 10-19-2013, 20:00
Last Post: Casper
  Help Modifying plugin maverigh 5 5,670 10-19-2013, 10:29
Last Post: Nekochan
Shocked [Request] Switch plugin axel-le-meilleur 6 5,178 10-19-2013, 06:59
Last Post: iRoNinja
  [Release] Yurio Map Plugin Yurio 101 62,282 09-26-2013, 13:38
Last Post: First_Semyon
Brick [Release] v1.1 ChangeMap/NextMap Plugin without any configuration milchshake 23 18,638 09-23-2013, 13:18
Last Post: SgtLegend
  Infected Stuff is semi broken DidUknowiPwn 2 3,456 09-21-2013, 20:22
Last Post: surtek
  Help !say Plugin (like the !say from GodPlugin) Hallla 0 2,711 09-13-2013, 09:31
Last Post: Hallla

Forum Jump:


Users browsing this thread:
6 Guest(s)

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