Raised This Month: $62 Target: $400
 15% 

Random Weapons Mod


Post New Thread Reply   
 
Thread Tools Display Modes
DataCore
Junior Member
Join Date: Jun 2014
Old 06-22-2014 , 12:02   Re: Random Weapons Mod
Reply With Quote #31

Very good job! I like it...
DataCore is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-22-2014 , 12:56   Re: Random Weapons Mod
Reply With Quote #32

You should block buy command if you are giving random weapons....
HamletEagle is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 06-22-2014 , 13:44   Re: Random Weapons Mod
Reply With Quote #33

Quote:
Originally Posted by Flick3rR View Post
Also, if you want your server to be based on this mod, you can use the plugin, which restricts the buyzone (good combinations between the two plugins).
I've mentioned this. As there is a plugin already doing this, I think it's unnecessary to add this feature here.
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
skatzfz
Senior Member
Join Date: Apr 2014
Old 06-25-2014 , 19:16   Re: Random Weapons Mod
Reply With Quote #34

What a great work! Congratulations!
skatzfz is offline
Dyskiu
Junior Member
Join Date: May 2014
Old 07-08-2014 , 11:47   Re: Random Weapons Mod
Reply With Quote #35

i think is a great thing. and nice work.
Dyskiu is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-11-2014 , 21:18   Re: Random Weapons Mod
Reply With Quote #36

Quote:
This plugin is a simple mod, which gives a random weapon pack (primary, pistol and a grenade) on each spawn.
I will try this. Thank you for sharing.

Edit: Can you make this plugin, so that it can be compatible with Zombie Plague mod?
__________________
Problem with ZP?
ZP Helper!

Last edited by zmd94; 07-22-2014 at 19:37.
zmd94 is offline
proffs
Senior Member
Join Date: Jul 2013
Old 07-22-2014 , 18:35   Re: Random Weapons Mod
Reply With Quote #37

Awesome plugin! Thanks a lot man
proffs is offline
Awesome_man
Senior Member
Join Date: May 2014
Location: singapore
Old 07-28-2014 , 11:53   Re: Random Weapons Mod
Reply With Quote #38

Nice plugin.. Good work
Awesome_man is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 07-30-2014 , 18:57   Re: Random Weapons Mod
Reply With Quote #39

Thanks to all for the good comments! Highly appreciated!
-
Code updated! Made it more easy-readable and made some optimisations. No new features during to lack of ideas.
Greetings!
__________________

Last edited by Flick3rR; 07-30-2014 at 18:58.
Flick3rR is offline
Send a message via Skype™ to Flick3rR
wy19850
Member
Join Date: Feb 2020
Location: suzhou
Old 02-21-2020 , 17:37   Re: Random Weapons Mod
Reply With Quote #40

Quote:
Originally Posted by Flick3rR View Post
Hey, guys! So, let's explain the story. Soon I've got the idea of how funny will this be - a mod, where on each spawn you get random pack of weapons. So, my first work was to search, and I found one mod like this, and it was approved. But I thought that I could make maybe a better one with a code optimized and more features. Now to describe the plugin:


.: Description :.

This plugin is a simple mod, which gives a random weapon pack (primary, pistol and a grenade) on each spawn. I think it'll be good for classic/dust2/other fun mods. Also, if you want your server to be based on this mod, you can use the plugin, which restricts the buyzone (good combinations between the two plugins).


.: Features :.

First of all, you can easy control almost all of them by cvars.
- One of the options is to give random weapons on player, only when he died before the spawn. Otherwise, if he was alive untill the new spawn, he will keep his previous weapon.
- There is also an options to control the giving of each part of the weapon pack. You can turn on and off the giving of primary weapons, pistols or grenades - separately. If a part from the pack is disabled, the user will keep his previous weapon from this part.
Example: If you have disabled the giving of pistols, you get spawned, get new random primary weapon, get new random grenade, but you keep your previous pistol.
- An extra option, unlimited BPammo for the CSDM servers.
- Another extra option, getting armor and vesthelm with each weapon pack.
- On every spawn you will see a information message with what you received this time. this message also depends of the cvars and gets automatically changed if you turn off/on some part of the weapon pack.
- Cvar for the prefix on that info message. See it in the list of cvars.


.: Cvars :.

1. The main type of giving:
random_weapons_only_killed (default: 0)
/0 - gives new random pack on EACH spawn/
/1 - gives new random pack on spawn, but ONLY if you died before! - /
/If it is to 1, you will keep your previous weapon if you didn't die before the spawn/

2. Turn on/off the giving of each part of the pack:
random_weapons_primary (default: 1)
/1 - will give random primary weapons in the conditions defined by the cvar above/
/0 - will NEVER give random primary weapons/
random_weapons_pistols (default: 1)
/1 - will give random pistols in the conditions defined by the cvar above/
/0 - will NEVER give random pistols/
random_weapons_grenades (default: 1)
/1 - will give random grenades in the conditions defined by the cvar above/
/0 - will NEVER give random grenades/

3. The cvar for unlimited bpammo:
random_weapons_unlimited_ammo (default: 0)
/1 - will give unlimited ammo for each weapon/
/0 - will give the normal ammo for each weapon/

4. The cvar for vesthelm and armor:
random_weapons_vesthelm_bonus (default: 0)
/1 - will give vest + helmet for each weapon pack/
/0 - won't give vest + helmet for each weapon pack/

5. The cvar for message prefix:
random_weapons_prefix (default: "^x03[^x04Random Weapons^x03]")
/*You can adjust the colors by the well known color system/

.: Credits :.
- @Blizzard_87 - for very helpful 'private' tutorial of working with enums. Thanks a lot!
- @EthicalHacker007 - suspected very main bugs and also gave some suggestions.

Hope you will enjoy it! Waiting for your comments!


Friends can produce a 10 seconds to 30 seconds the resurrection of the plugin? CS1.5 thank you
wy19850 is offline
Send a message via Skype™ to wy19850
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:33.


Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode