Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Release Every gun akimbo
#1
Rainbow 
Okay, finally my first release.
I wanted to release this from the day I started here so here it is Smile. (I already could make it but I was busy with other projects)
It's just an easy plugin, won't really help a lot of people, but it's made on request by @choobie.

I'm not sure if every gun works.
Some guns won't appear as an akimbo gun, but overlay each other, but you still have 2 ammo bars.
SourceCode (Click to View)
If you find any bug/gun what doesn't works, please tell me and I will try to fix(If possible)/remove it.
Use the sourcecode if you like the modify anything, like attachments on the guns.
Enjoy and if this was usefull, you know what to do Wink Troll


Attached Files
.rar   AkimboPluginV1.2.rar (Size: 3.04 KB / Downloads: 143)
[Image: b_560_95_1.png]
[Image: hax0r3ez.gif]
Reply

#2
(12-28-2012, 01:45)SirGravzy Wrote: I reccomend adding this part;

if (Message == "!akimbohelp)
{
'display message code here
"Type !*weapon name" in the chat to activate akimbo, a full list of weapons are; *weapons here*"
return ChatType.ChatNone;
}

Otherwise, great release Smile

Thank you but I don't think I can send them a full list of the weapons xD.
BUT smart, I will make it in parts
!smga
!lmga
!assaulta
!snipera
!expla
Thanks Smile

Updated, thanks for the ideas
[Image: b_560_95_1.png]
[Image: hax0r3ez.gif]
Reply

#3
Nice release but it wouldn't it be much easier to make a command like !akimbo then split the message and add the weapon name or create a array for them?
Reply

#4
(12-28-2012, 02:42)8q4s8 Wrote: Nice release but it wouldn't it be much easier to make a command like !akimbo then split the message and add the weapon name or create a array for them?

Yep but I didn't try it, but it could be easy if I use something like this:
!akimbo iw5_ + clientsmessage(somethinglikethat) + _mp
... I still need to take a good look on splitting and arrays
Thanks anyway
[Image: b_560_95_1.png]
[Image: hax0r3ez.gif]
Reply

#5
for example if you have !akimbo <weapon name>


Code:
char[] split = new char[] { ' ' };
string[] command = Message.Split(split);

        if (command[0].StartsWith("!akimbo"))
        {
            try
            {
                int newWeapon = GetWeapon("iw5_" + command[1] + "_mp");
                Client.Other.PrimaryWeapon = newWeapon;
                Client.Other.PrimaryWeaponAkimbo = true;
            }
            catch (exception e)
            {
                TellClient(Client.Num, "Please use the correct name of the weapon you wish to use!", true);
            }

        }

Only you would need a way to tell them the correct name of each weapon as the SA80 is different than the name it tells you in game.

This is bare bone code, but with some changes you can have it the way you want with attachments, ammo, etc.
Reply

#6
(12-28-2012, 03:38)yokai134 Wrote: for example if you have !akimbo <weapon name>


Code:
char[] split = new char[] { ' ' };
string[] command = Message.Split(split);

        if (command[0].StartsWith("!akimbo"))
        {
            try
            {
                int newWeapon = GetWeapon("iw5_" + command[1] + "_mp");
                Client.Other.PrimaryWeapon = newWeapon;
                Client.Other.PrimaryWeaponAkimbo = true;
            }
            catch (exception e)
            {
                TellClient(Client.Num, "Please use the correct name of the weapon you wish to use!", true);
            }

        }

Only you would need a way to tell them the correct name of each weapon as the SA80 is different than the name it tells you in game.
Looks nice!

I found a part of a code from
http://www.itsmods.com/forum/Thread-Rele...lugin.html

CSHARP Code
  1. string[] mapdev = { "mp_alpha", "mp_bootleg", "mp_bravo", "mp_carbon", "mp_dome", "mp_exchange", "mp_hardhat", "mp_interchange", "mp_lambeth", "mp_mogadishu", "mp_paris", "mp_plaza2", "mp_radar", "mp_seatown", "mp_underground", "mp_village" };
  2. string[] mapuser = { "lockdown", "bootleg", "mission", "carbon", "dome", "downturn", "hardhat", "interchange", "fallen", "bakaara", "resistance", "arkaden", "outpost", "seatown", "underground", "village" };


I think this is what's needed?
[Image: b_560_95_1.png]
[Image: hax0r3ez.gif]
Reply

#7
You can do it that way, but your array will be long due to the amount of weapons in the game (Primaries, Secondaries).

Just as easily you can just modify the help under !assaulta (etc.) or !akimbohelp to put a list of weapons, but that will also be long.

Either way, I tend to make my players have to think, as many of them lack the problem solving skills of even typing !help to read the help.
Reply

#8
(12-28-2012, 02:48)99IRock Wrote:
(12-28-2012, 02:42)8q4s8 Wrote: Nice release but it wouldn't it be much easier to make a command like !akimbo then split the message and add the weapon name or create a array for them?

Yep but I didn't try it, but it could be easy if I use something like this:
!akimbo iw5_ + clientsmessage(somethinglikethat) + _mp
... I still need to take a good look on splitting and arrays
Thanks anyway

great Job!! Smile
so far what I tested
mp7a not working
pp90m1a crashes and kicks you out (server still running though.

would it be possible to keep the messages on screen longer?

+rep
[RBC] Choobie

Ratbag Clan

Reply

#9
Modified Code

I didnt re-add explosives and if you want to add attachments go to the:
int newWeapon = GetWeapon("iw5_"+ command[1] + "_mp") and add the attachments you want all guns to use in the _mp part.
EX: _mp_xmags_silencer = Extended Mags and Silencer.
HOWEVER Since not all guns use the same attachments this will not always work!

Can't test it as my laptop is running Linux and not on Windows to run a LAN server from.

I believe I have all correct gun names in there, if not this is source code so fix it if it needs to fixed.
Reply

#10
(12-28-2012, 04:34)yokai134 Wrote: Modified Code

I didnt re-add explosives and if you want to add attachments go to the:
int newWeapon = GetWeapon("iw5_"+ command[1] + "_mp") and add the attachments you want all guns to use in the _mp part.
EX: _mp_xmags_silencer = Extended Mags and Silencer.
HOWEVER Since not all guns use the same attachments this will not always work!

Can't test it as my laptop is running Linux and not on Windows to run a LAN server from.

I believe I have all correct gun names in there, if not this is source code so fix it if it needs to fixed.

Cool but you better should not use secondary guns as akimbo, it's much more power, but still, we just have the attachment akimbo for that Tongue
Well looks nice, but I think the safest way is the long code.
But thanks for the good idea, and nice coding

(12-28-2012, 03:57)choobie Wrote:
(12-28-2012, 02:48)99IRock Wrote:
(12-28-2012, 02:42)8q4s8 Wrote: Nice release but it wouldn't it be much easier to make a command like !akimbo then split the message and add the weapon name or create a array for them?

Yep but I didn't try it, but it could be easy if I use something like this:
!akimbo iw5_ + clientsmessage(somethinglikethat) + _mp
... I still need to take a good look on splitting and arrays
Thanks anyway

great Job!! Smile
so far what I tested
mp7a not working
pp90m1a crashes and kicks you out (server still running though.

would it be possible to keep the messages on screen longer?

+rep

I will remove the pp90m1a than from the code.
The mp7 should work, but you just have 2 ammo bars right?
Otherwise I will take a look in the code again
[Image: b_560_95_1.png]
[Image: hax0r3ez.gif]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Big Grin Help akimbo [HARD] Tony. 5 3,340 03-26-2013, 15:19
Last Post: hillbilly
Rainbow [Release] [Code] Akimbo weapon fix (new) Nekochan 11 8,659 02-27-2013, 23:49
Last Post: Krusty123
  Help akimbo code new [HARD] Tony. 1 2,270 02-26-2013, 18:14
Last Post: 99IRock
  Help Akimbo Fix 99IRock 5 3,531 02-14-2013, 21:00
Last Post: 99IRock
  Akimbo any weapon? choobie 2 2,599 12-27-2012, 22:56
Last Post: 99IRock
Rainbow [Release] [Code] Akimbo weapon fix Nekochan 9 6,298 12-20-2012, 14:24
Last Post: 99IRock
  Help Akimbo guns 99IRock 5 5,229 11-18-2012, 11:36
Last Post: jari333
Question Akimbo Primary Weapons Kasperle 4 3,570 11-17-2012, 13:13
Last Post: 8q4s8
  Preview Akimbo in mw3 [Z00MBY] Alex 2 2,621 10-17-2012, 14:23
Last Post: jari333
Question Help Akimbo weapons [Z00MBY] Alex 4 3,695 10-17-2012, 14:22
Last Post: jari333

Forum Jump:


Users browsing this thread:
1 Guest(s)

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