Raised This Month: $32 Target: $400
 8% 

Weapon Modifier v1.56 (Damage, Recoil, Speed and more...)


Post New Thread Reply   
 
Thread Tools Display Modes
Kiske
Veteran Member
Join Date: May 2009
Old 08-19-2011 , 23:09   Re: Change Weapons v1.1 (Damage , Recoil , Speed and Models)
Reply With Quote #11

Update Plugin!
See changelog for more information.

Sory for my english.
Kiske is offline
Send a message via Skype™ to Kiske
klatro
Senior Member
Join Date: Oct 2009
Location: The world and at home
Old 08-20-2011 , 03:22   Re: Change Weapons v1.1 (Damage , Recoil , Speed and Models)
Reply With Quote #12

Thank you very much for this plugin.

Good job!
klatro is offline
Kiske
Veteran Member
Join Date: May 2009
Old 08-21-2011 , 21:46   Re: Change Weapons v1.3 (Damage , Recoil , Speed , Models and Glow)
Reply With Quote #13

Update Plugin and Post!
See changelog for more information.

Last edited by Kiske; 08-22-2011 at 02:44.
Kiske is offline
Send a message via Skype™ to Kiske
Dolph_Ziggler
BANNED
Join Date: Jun 2011
Old 08-23-2011 , 16:03   Re: Change Weapons v1.31 (Damage , Recoil , Speed , Model and Glow)
Reply With Quote #14

Thanks is very nice = )
Dolph_Ziggler is offline
Send a message via MSN to Dolph_Ziggler
bibu
Veteran Member
Join Date: Sep 2010
Old 08-23-2011 , 16:21   Re: Change Weapons v1.31 (Damage , Recoil , Speed , Model and Glow)
Reply With Quote #15

The name "Weapon Modifier" would be better IMO.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-23-2011 , 17:40   Re: Change Weapons v1.31 (Damage , Recoil , Speed , Model and Glow)
Reply With Quote #16

PHP Code:
    if(equal(classname"weaponbox") ||
    
equali(model"models/w_shield.mdl") ||
    
equali(model"models/w_thighpack.mdl") ||
    
equali(model"models/w_c4.mdl") ||
    
equali(model"models/w_backpacks.mdl")) // sory for that :( 
If you are so sorry, then use a Trie

Also, notice the typo you made on models/w_backpacks.mdl
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Kiske
Veteran Member
Join Date: May 2009
Old 08-23-2011 , 22:24   Re: Change Weapons v1.31 (Damage , Recoil , Speed , Model and Glow)
Reply With Quote #17

Quote:
Originally Posted by ConnorMcLeod View Post
PHP Code:
    register_message(get_user_msgid("CurWeapon"), "message_CurWeapon"); 
Remove this.
Sorry, but I had to put it back for the infinite bullets.


Quote:
Originally Posted by bibu View Post
The name "Weapon Modifier" would be better IMO.
Accepted!
Thanks.


Quote:
Originally Posted by ConnorMcLeod View Post
PHP Code:
    if(equal(classname"weaponbox") ||
    
equali(model"models/w_shield.mdl") ||
    
equali(model"models/w_thighpack.mdl") ||
    
equali(model"models/w_c4.mdl") ||
    
equali(model"models/w_backpacks.mdl")) // sory for that :( 
If you are so sorry, then use a Trie

Also, notice the typo you made on models/w_backpacks.mdl
Done!, and thanks for the bugfix


Update Plugin and Post!
See changelog for more information.
Kiske is offline
Send a message via Skype™ to Kiske
TandborsteN
Member
Join Date: Sep 2008
Old 08-24-2011 , 01:29   Re: Weapon Modifier v1.4 (Damage, Recoil, Speed and more...)
Reply With Quote #18

Awesome plugin, GJ!
__________________
TANDBORSTEN!
TandborsteN is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-24-2011 , 06:08   Re: Weapon Modifier v1.4 (Damage, Recoil, Speed and more...)
Reply With Quote #19

PHP Code:
get_pcvar_string(g_cvar_weapon[g_weapon[attacker]][WEAPON_DAMAGE], dmg_cvarcharsmax(dmg_cvar));
    
get_pcvar_string(g_cvar_weapon[31][WEAPON_DAMAGE], dmg_cvar_tempcharsmax(dmg_cvar_temp)); 
You should've used get_pcvar_float, and use 0.0 as "off"
__________________
xPaw is offline
Kiske
Veteran Member
Join Date: May 2009
Old 08-24-2011 , 07:19   Re: Weapon Modifier v1.4 (Damage, Recoil, Speed and more...)
Reply With Quote #20

Quote:
Originally Posted by xPaw View Post
PHP Code:
get_pcvar_string(g_cvar_weapon[g_weapon[attacker]][WEAPON_DAMAGE], dmg_cvarcharsmax(dmg_cvar));
    
get_pcvar_string(g_cvar_weapon[31][WEAPON_DAMAGE], dmg_cvar_tempcharsmax(dmg_cvar_temp)); 
You should've used get_pcvar_float, and use 0.0 as "off"
But the cvar is used with the following format:
+value
-value
*value
/value
=value

And if i get as a float, i can't get the +, -, etc.
Sorry for my english.
Kiske is offline
Send a message via Skype™ to Kiske
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 05:28.


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