DoD Plugins

Go Back   DoD Plugins > DoD Plugins > Developers Plugins > Fun Plugins

Fun Plugins Plugins that might not be totally realistic, but still pretty damn fun anyway

» Navigation
 > FAQ
» Forum Actions
» Programming
 > VERC
» Server Links
For Linking to Us
AvaMods
=|[76AD]|=
GameSpy Rangers
{DFH} Clan
AMX Mod X
Reply
 
Thread Tools Display Modes
  #1  
Old 03-19-2007, 12:05 PM
TooLz TooLz is offline
developer
Developer
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 96
DoD Weapons Mod 2.0

The new Weapons Mod 2.0 is finally here.

The Weapons Mod allows you to type /, then the weapons name and receive the weapon as your primary! You can do this with any gun in the game, Now including the Scoped FG42 and Scoped Enfield!

The following is a list of instructions:

Step 1: Press your public chat key while in game
Step 2: Type / then weapons name, the following is a list of aliases to make this simple for binding one key to a gun.
Code:
alias GiveK98 "say /k98" alias GiveK43 "say /k43" alias GiveMP40 "say /mp40" alias GiveSTG44 "say /stg44" alias GiveFG42 "say /fg42" alias GiveScopedFG42 "say /scopedfg42" alias GiveScopedK98 "say /scopedk98" alias GiveMG34 "say /mg34" alias GiveMG42 "say /mg42" alias GivePanzerschreck "say /panzerschreck" alias GiveGarand "say /garand" alias GiveCarbine "say /carbine" alias GiveThompson "say /thompson" alias GiveGreaseGun "say /greasegun" alias GiveBAR "say /bar" alias GiveSpringfield "say /springfield" alias Give30Cal "say /30cal" alias GiveBazooka "say /bazooka" alias GiveEnfield "say /enfield" alias GiveSten "say /sten" alias GiveBren "say /bren" alias GiveScopedEnfield "say /scopedenfield" alias GivePiat "say /piat"

Put those in your userconfig.cfg located in your dod folder client side and then simply bind a key to any of those names you shall receive the gun! Its magic! lol

Modules used:
Code:
#include <amxmodx> #include <amxmisc> #include <fun> #include <dodx> #include <fakemeta>

CVAR's

amx_weapon_changes - How many times client is allowed to change weapons, default is 2

All below are default to 0, no weapons are disabled by default.
Code:
amx_disable_k98 amx_disable_garand amx_disable_carbine amx_disable_k43 amx_disable_mp40 amx_disable_thompson amx_disable_stg44 amx_disable_bar amx_disable_fg42 amx_disable_greasegun amx_disable_bazooka amx_disable_enfield amx_disable_sten amx_disable_mg42 amx_disable_mg34 amx_disable_30cal amx_disable_springfield amx_disable_scopedk98 amx_disable_bren amx_disable_panzerschreck amx_disable_piat amx_disable_scopedfg42 amx_disable_scopedenfield

Let me know if you have any problems so I can promptly fix them

UPDATE 3-20-07:
Code:
1. Fixed problem with having to drop weapon before receiving new one! 2. Added Piat and Panzerschreck

UPDATE 3-20-07:
Code:
1. Added a 0.5 delay on picking up weapon because when someone has a higher latency, they don't receive the weapon.

UPDATE 3-23-07:
Code:
1. Did a complete recode for cleaner and smaller code 2. Made weapons give faster 3. Fixed bug with the cvar's from previous version

UPDATE 3-25-07:
Code:
1. ADDED SCOPED FG42 AND SCOPED ENFIELD! Big thanks to Wilson for all the help on finding out how finally! 2. Fixed CVAR issue that I thought was fixed in last version

UPDATE 3-26-07:
Code:
1. Changed how Scoped FG42 and Scoped Enfield were handled.

UPDATE 4-01-07:
Code:
1. Fixed Allowed Change CVAR 2. Fixed problem with sometimes not getting scoped weapon

Special thanks goes to Wilson for helping me out on parts of the code such as the drop issues I was having, and to Diamond-Optic for allowing me to pester him while he is just about to leave all the time.. lol

Cya
Attached Files
 
 Source (6.0 KB, 1007 views)
__________________
TooLz aka [WRA]PH3N0M


My Specs:
AMD Athlon64 5000+ X2
eVGA nVidia GeForce 7950 GT KO (512MB)
2GB DDR2 Ram
320GB HDD
Vivitek 32" Monitor
Windows Vista Ultimate x64

Last edited by TooLz; 04-01-2007 at 06:19 AM. Reason: Added more information
Reply With Quote
  #2  
Old 03-19-2007, 04:06 PM
Stixsmaster Stixsmaster is offline
Junior Member
 
Join Date: Feb 2007
Posts: 7
for those that have never heard of the first weapons mod...what exactly does this do?

---Stixsmaster
Reply With Quote
  #3  
Old 03-19-2007, 08:26 PM
=|[76AD]|= TatsuSaisei's Avatar
=|[76AD]|= TatsuSaisei =|[76AD]|= TatsuSaisei is offline
developer
Developer
 
Join Date: May 2005
Location: Auburn, NY
Posts: 793
Quote: Originally Posted by TooLz View Post
Panzershreck
Piat

I know alot who like to use all the zooka types...

weapon_pschreck
weapon_piat

they both work...
__________________



*NOT ACCEPTING REQUESTS
Reply With Quote
  #4  
Old 03-21-2007, 03:03 AM
TooLz TooLz is offline
developer
Developer
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 96
Okay, I got a lot of things fixed, reuploaded - big thanks goes to Wilson for the help. Piat and Panzerschreck added as requested.

Now if anyone knows where the weapons are defined as weapon_name, let me know please, I am on pursuit of trying to get the scoped FG42 and Scoped Enfield working, that would complete the mod 100%.

Cya
__________________
TooLz aka [WRA]PH3N0M


My Specs:
AMD Athlon64 5000+ X2
eVGA nVidia GeForce 7950 GT KO (512MB)
2GB DDR2 Ram
320GB HDD
Vivitek 32" Monitor
Windows Vista Ultimate x64
Reply With Quote
  #5  
Old 03-22-2007, 08:08 PM
T1mmy T1mmy is offline
Junior Member
 
Join Date: Aug 2006
Posts: 3
Is there a way to make this admin only also the amx_weapon_count doesnt seem to work
Reply With Quote
  #6  
Old 03-23-2007, 12:50 AM
T1mmy T1mmy is offline
Junior Member
 
Join Date: Aug 2006
Posts: 3
well i managed to get the amx_weapon_changes to work by doing amx_cvar amx_weapon_changes all we need now is for it to be admin only
Reply With Quote
  #7  
Old 03-23-2007, 01:54 AM
TooLz TooLz is offline
developer
Developer
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 96
You're wanting only admins to be able to change guns? If so, sorry that just sounds like more of a cheat than a plugin.. It's meant for everyone, not as a cheat.

Cya
__________________
TooLz aka [WRA]PH3N0M


My Specs:
AMD Athlon64 5000+ X2
eVGA nVidia GeForce 7950 GT KO (512MB)
2GB DDR2 Ram
320GB HDD
Vivitek 32" Monitor
Windows Vista Ultimate x64
Reply With Quote
  #8  
Old 03-23-2007, 12:13 PM
T1mmy T1mmy is offline
Junior Member
 
Join Date: Aug 2006
Posts: 3
no, wanting it admin only cus we want the admins with bazookas and other stuff only gainst the rest as a fun thing
Reply With Quote
  #9  
Old 03-23-2007, 12:27 PM
TooLz TooLz is offline
developer
Developer
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 96
Then change your classes to bazooka or figure out how to code and change it yourself

I don't make cheats, I make plugins - sorry.

Cya
__________________
TooLz aka [WRA]PH3N0M


My Specs:
AMD Athlon64 5000+ X2
eVGA nVidia GeForce 7950 GT KO (512MB)
2GB DDR2 Ram
320GB HDD
Vivitek 32" Monitor
Windows Vista Ultimate x64
Reply With Quote
  #10  
Old 03-23-2007, 08:55 PM
TooLz TooLz is offline
developer
Developer
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 96
Updates to code above, did a complete recode to take down all of the junk code that was there and put everything into an array and down to 2 functions from like 25, lol..

Should run a lot nice and is a ton smaller in code size, from 550ish lines to 112 lines, so a pretty big improvement, I'd suggest everyone use this one over the old one.

Cya
__________________
TooLz aka [WRA]PH3N0M


My Specs:
AMD Athlon64 5000+ X2
eVGA nVidia GeForce 7950 GT KO (512MB)
2GB DDR2 Ram
320GB HDD
Vivitek 32" Monitor
Windows Vista Ultimate x64

Last edited by TooLz; 03-23-2007 at 09:09 PM.
Reply With Quote
Reply

Bookmarks

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing Weapons plogan64 Requests for DoD Plugins 7 06-21-2010 07:17 PM
DoD CS Weapons spitfire Requests for DoD Plugins 7 11-26-2008 06:59 PM
Weapons Mod 2.0 To DoD:S?? menotyou Requests for DoD Plugins 0 07-27-2008 02:19 PM

» Donations
If you like this website, and would like to give something in return, you can make a donation. Your donation will be used to pay for hosting service, domain, & maintenance costs only!

$

Select your donation amount and then press the Donate button.




» Log in
User Name:

Password:

Not a member yet?
Register Now!
Powered by vBadvanced CMPS v3.2.3

All times are GMT -3. The time now is 06:40 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
dodplugins.net