![]() |
|
[Request] Classes - Printable Version +- ItsMods (https://www.itsmods.com) +-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html) +--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html) +--- Thread: [Request] Classes (/Thread-Request-Classes.html) Pages:
1
2
|
Classes - 99IRock - 11-14-2012 Hello, I am 99IRock. I really want a plugin, that makes it possible to make classes for specific persons on specific teams (And also on specifics maps) Because I want to use infected, and so my friends get another weapon on start than other people. Also for special people I want an ACR akimbo... Is this possible an ACR akimbo? Maybe someone can give me the code, and than I can figure out myself. thanks OKAY: So after training and getting help from people, like @Sailormoon and @JariZ (Not with coding but he helped me here with a little begin ) and more people(I need to seek the names)The code below can we use in different cases. in this case we use Onsay so if a player says the message !akimboacr he will receive an akimbo acr. Code: public override ChatType OnSay(String Message, ServerClient Client, bool Teamchat)
{
if (Message == "!akimboacr")
{
int AkimboWeaponID = GetWeapon("iw5_acr_mp_silencer_camo09"); // Akimbo weapon.
Client.Other.PrimaryWeaponAkimbo = true; //Primary weapon set to akimbo
Client.Other.SecondaryWeaponAkimbo = true; //Secondary weapon set to akimbo
Client.Other.PrimaryWeapon = AkimboWeaponID; // Your Primary weapon will be the acr (AkimboWeaponID)
Client.Other.SecondaryWeapon = AkimboWeaponID; // Your Secondary weapon will be the acr (AkimboWeaponID)
Client.Other.CurrentWeapon = AkimboWeaponID; // Your current weapon will be the acr (AkimboWeaponID)
Client.Ammo.PrimaryAmmoClip = +1000; // Gives primary +1000 ammo
Client.Ammo.SecondaryAmmoClip = +1000; // Gives secondary +1000 ammo
}
}Well there is a bug with akimbo guns (The akimbo who are normally not possible in the game) If you switch from gun, it will be bugged and than you can't shoot anymore. So if you set all guns to the same gun, you can't switch from weapon (Thanks @sailormoon for the Primary & Secondary idea) Why Primary & Secondary akimbo? Well you don't know if you are on the primary weapon slot or secondary weapon slot. That's why we just set both to akimbo KNOWN BUGS: When you call in a carepackage, you can't shoot anymore When you go over a fence (Press space to go over), you can't shoot anymore. If you take another gun, and switch to it it will be akimbo.(FIX by @sailormoon)! And if you have a spass you can't shoot anymore, because the spass is not able to use as akimbo gun. http://www.itsmods.com/forum/Thread-Release-Code-Akimbo-weapon-fix.html I use the code and give some info about it (Sailormoon already did but just to make it complete) For the ACR akimbo we use int akimbo = GetWeapon("iw5_acr_mp_silencer_camo09"); // The acr gun Code: public override void OnPlayerChangeWeapon(ServerClient Client, int WeaponID)
{
int akimbo = GetWeapon("iw5_acr_mp_silencer_camo09");//You put your gun here, in this case we use the ACR
if (WeaponID == akimbo)
{
Client.Other.PrimaryWeaponAkimbo = true; // PrimaryWeapon akimbo will be set to true, that means you get akimbo on primary weapon
}
Else
{
Client.Other.PrimaryWeaponAkimbo = false; // PrimaryWeapon akimbo will be set to false, that means your akimbo will be removed on primary weapon
}
}I hope this will help beginners. Enjoy making akimbo guns! RE: Classes - Nekochan - 11-14-2012 1. Possible 2. Possible. 3. Someone will. I could help, but i stopped modding/programming. RE: Classes - 99IRock - 11-14-2012 (11-14-2012, 18:06)JayDi Wrote: 1. Possible Ok thankyou for you're response Atleast I know now that its all possible, but than my question for sure, this will only be SERVER side, so I don't need to mod my mw3 right ? ![]() Thanks again
RE: Classes - JariZ - 11-14-2012 No, Only texture mods are clientside. RE: Classes - Nekochan - 11-14-2012 (11-14-2012, 20:01)JariZ Wrote: No, Only texture mods are clientside. Sounds too, obviously. RE: Classes - JariZ - 11-14-2012 @jaydi I'm answering his question. RE: Classes - 99IRock - 11-14-2012 Ok Im learning allot already now xD So is someone possible to help me? , or is someone able to give me a source code from an plugin so I can learn from the code
RE: Classes - 99IRock - 12-26-2012 Okay, I updated this topic and soon I will make a basic info topic for everyone who wants to learn coding for mw3 .So if someone needs help, they can ask me. And also, if you look on my topic and see something what can be easier or better, please post ![]() ONE THING: I'm not the best, so I can do some basics, and I can work with booleans and stuff, but not with databases yet. RE: Classes - kokole - 12-26-2012 (12-26-2012, 13:59)99IRock Wrote: Okay, I updated this topic and soon I will make a basic info topic for everyone who wants to learn coding for mw3 Well, basically its just learn C# and read addon functions documentation, but well ok. RE: Classes - 99IRock - 12-26-2012 (12-26-2012, 14:33)kokole Wrote:(12-26-2012, 13:59)99IRock Wrote: Okay, I updated this topic and soon I will make a basic info topic for everyone who wants to learn coding for mw3 I knew someone would gonna hate on my post. Atleast I'm trying to help new people? |