AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Weapon Modifier v1.56 (Damage, Recoil, Speed and more...) (https://forums.alliedmods.net/showthread.php?t=165075)

Kiske 08-19-2011 23:09

Re: Change Weapons v1.1 (Damage , Recoil , Speed and Models)
 
Update Plugin!
See changelog for more information.

Sory for my english.

klatro 08-20-2011 03:22

Re: Change Weapons v1.1 (Damage , Recoil , Speed and Models)
 
Thank you very much for this plugin.

Good job! :)

Kiske 08-21-2011 21:46

Re: Change Weapons v1.3 (Damage , Recoil , Speed , Models and Glow)
 
Update Plugin and Post!
See changelog for more information.

Dolph_Ziggler 08-23-2011 16:03

Re: Change Weapons v1.31 (Damage , Recoil , Speed , Model and Glow)
 
Thanks is very nice = )

bibu 08-23-2011 16:21

Re: Change Weapons v1.31 (Damage , Recoil , Speed , Model and Glow)
 
The name "Weapon Modifier" would be better IMO. :)

ConnorMcLeod 08-23-2011 17:40

Re: Change Weapons v1.31 (Damage , Recoil , Speed , Model and Glow)
 
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

Kiske 08-23-2011 22:24

Re: Change Weapons v1.31 (Damage , Recoil , Speed , Model and Glow)
 
Quote:

Originally Posted by ConnorMcLeod (Post 1536349)
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 (Post 1539497)
The name "Weapon Modifier" would be better IMO. :)

Accepted!
Thanks.


Quote:

Originally Posted by ConnorMcLeod (Post 1539543)
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.

TandborsteN 08-24-2011 01:29

Re: Weapon Modifier v1.4 (Damage, Recoil, Speed and more...)
 
Awesome plugin, GJ! :)

xPaw 08-24-2011 06:08

Re: Weapon Modifier v1.4 (Damage, Recoil, Speed and more...)
 
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"

Kiske 08-24-2011 07:19

Re: Weapon Modifier v1.4 (Damage, Recoil, Speed and more...)
 
Quote:

Originally Posted by xPaw (Post 1539776)
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.


All times are GMT -4. The time now is 16:50.

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