Raised This Month: $51 Target: $400
 12% 

DualMP5 Mod


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Johnny got his gun (102)
KaOs
Senior Member
Join Date: Apr 2004
Old 03-05-2005 , 13:41   DualMP5 Mod
Reply With Quote #1

I originally created this plugin over at AMX a while ago, and recently had a urge to port it. Well I did, and added a few features..

You can check out the old plugin (if you want) over at:
http://djeyl.net/forum/index.php?showtopic=31304

Give some credit to RadidEskamo and FreeCode for the little code that is still used from their plugins =D
Also, I am whitemike, don't post saying I stole code from him lol

Directions:
1) Download & Unzip
2) Place 'amx_dualmp5.amxx' in 'cstrike/addons/amxmodx/plugins'
3) Add a line in 'configs/plugins.ini' containing 'amx_dualmp5.amxx'
4) Put 'SteamTools_Net_DualMP5.mdl' in 'cstrike/models' folder
5) Open 'cstrike/server.cfg' and add the cvars listed below
6) -- Visit www.SteamTools.net and enjoy your new plugin!

Header of SMA file:
Code:
/*##########################################################################
##
## -- www.SteamTools.net
##     _____   _   _       ___   _           ___  ___   _____   _____
##    |  _  \ | | | |     /   | | |         /   |/   | |  _  \ |  ___| 
##    | | | | | | | |    / /| | | |        / /|   /| | | |_| | | |___  
##    | | | | | | | |   / / | | | |       / / |__/ | | |  ___/ \___  \ 
##    | |_| | | |_| |  / /  | | | |___   / /       | | | |      ___| | 
##    |_____/ \_____/ /_/   |_| |_____| /_/        |_| |_|     \_____|
##                                                        
##          |__                   |__  o _|_   ___   __ __  o |__,  ___  
##      --  |__) (__|     (__(__( |  ) |  |_, (__/_ |  )  ) | |  \ (__/_ 
##                  |                                                    
##
##   Replaces your standard MP5 with this DualMP5 model. There's no
## difference in performance (damage, bullets, etc.) unless you set
## the CVARs accordingly. By default you do NOT start with DualMP5,
## and you do NOT have unlimited ammo.
##
##   A sample configuration is below, feel free to contact me
## via PM or email ([email protected]) if you have any questions
## or comments.
##
##   Enjoy!
##
##
## INSTALLATION
##------------------------------------------------------------------------
## 1) Unzip (which you may have done already)
## 2) Place 'amx_dualmp5.amxx' in 'cstrike/addons/amxmodx/plugins'
## 3) Add a line in 'configs/plugins.ini' containing 'amx_dualmp5.amxx'
## 4) Put 'SteamTools_Net_DualMP5.mdl' in 'cstrike/models' folder
## 5) Open 'cstrike/server.cfg' and add the cvars listed below
## 6) -- Visit www.SteamTools.net and enjoy your new plugin!
##
##
## SAMPLE CONFIGURATION
##------------------------------------------------------------------------
##
## amx_dualmp5_startwith 1
## amx_dualmp5_startmsg_on 2
## amx_dualmp5_startmsg_msg "These do 2x damage, and you have unlim. ammo!"
## amx_dualmp5_unlimitedammo 1
##
## -- This config will:
##     - Give all players DualMP5's each round
##     - Show the start message only when you start with mp5 (until startwith = 0)
##     - Allow users to continuously fire with no reloads.
##
##
## THE CVARs
##------------------------------------------------------------------------
##
## amx_dualmp5_startwith
##   - Start with mp5
##     + Default is 0
##
## amx_dualmp5_startmsg_on
##   - You can choose to show a start message.
##     0 = OFF
##     1 = ON
##     2 = ON - Only shows when amx_dualmp5_startwith = 1
##     + Default is 2
##
## amx_dualmp5_startmsg_msg
##   - Message to show when startmsg_on is enabled.
##     + Default is "These do 2x normal damage, enjoy!"
##
## amx_dualmp5_unlimitedammo
##   - Dual MP5s have unlimited ammo
##     + Default is FALSE
##
##
##########################################################################*/
Attached Files
File Type: zip dualmp5_mod.zip (347.8 KB, 35585 views)
__________________
KaOs is offline
Send a message via AIM to KaOs Send a message via MSN to KaOs
Oo Bedo oO
Junior Member
Join Date: Feb 2005
Old 03-05-2005 , 16:34   messed up
Reply With Quote #2

sometimes when you kill people it shows that you killed them but right after that it shows they did a suicide taking a kill of their stats and you dont get n e kills for killing them

also i have been able to shoot their feet and it says i get a hs??

plz help
__________________


69.240.235.150:27015
Oo Bedo oO is offline
Send a message via AIM to Oo Bedo oO
KaOs
Senior Member
Join Date: Apr 2004
Old 03-05-2005 , 17:30  
Reply With Quote #3

I remember this being a bug before also, I think that it's the part that does double damage. To fix it, I have to change it to detect how much health the person has, otherwise the script kills them.

BTW, I don't know how to do this yet ^
KaOs is offline
Send a message via AIM to KaOs Send a message via MSN to KaOs
KaOs
Senior Member
Join Date: Apr 2004
Old 03-06-2005 , 00:52  
Reply With Quote #4

I'm thinking of releasing another version, instead of MP5, it will be machine gun. >D
KaOs is offline
Send a message via AIM to KaOs Send a message via MSN to KaOs
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 03-06-2005 , 13:39  
Reply With Quote #5

In the if(plyNewDmg < 1) check, add this code:

Code:
set_msg_block(get_user_msgid("DeathMsg"),BLOCK_ONCE);

That will block the death message of them "killing themselves" if they are to be killed by it.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
KaOs
Senior Member
Join Date: Apr 2004
Old 03-06-2005 , 21:28  
Reply With Quote #6

Done. Hope I added it in the right place, i've never used that code before. Thanks alot tho
__________________
KaOs is offline
Send a message via AIM to KaOs Send a message via MSN to KaOs
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-06-2005 , 23:12  
Reply With Quote #7

Doesn't seem like they do 2x damage..
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
-=STN=- MaGe
Veteran Member
Join Date: Apr 2004
Location: Asault World
Old 03-07-2005 , 08:13  
Reply With Quote #8

i think these should go in amxx.cfg not the server.cfg as i think the server.cfg loadz before amxx?
## THE CVARs
##------------------------------------------------------------------------
##
## amx_dualmp5_startwith
## - Start with mp5
## + Default is 0
##
## amx_dualmp5_startmsg_on
## - You can choose to show a start message.
## 0 = OFF
## 1 = ON
## 2 = ON - Only shows when amx_dualmp5_startwith = 1
## + Default is 2
##
## amx_dualmp5_startmsg_msg
## - Message to show when startmsg_on is enabled.
## + Default is "These do 2x normal damage, enjoy!"
##
## amx_dualmp5_unlimitedammo
## - Dual MP5s have unlimited ammo
## + Default is FALSE
__________________



-=STN=- MaGe is offline
Send a message via Yahoo to -=STN=- MaGe
KaOs
Senior Member
Join Date: Apr 2004
Old 03-08-2005 , 21:08  
Reply With Quote #9

I don't think it matters..

BTW for double damage you have to set it then change level..
__________________
KaOs is offline
Send a message via AIM to KaOs Send a message via MSN to KaOs
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-09-2005 , 21:47  
Reply With Quote #10

amx_dualmp5_doubledamage
You should put that in the list of cvars next time .

As for the dual-machine guns, I have a nifty model for you, it looks like dual M4's but it's really a para .
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Reply



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 16:10.


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