Wednesday, July 16, 2014

Weapon Modifier v1.56

Weapon Modifier v1.56
By Kiske



Features:
  • Damage
  • Recoil
  • Speed
  • Model
  • Glow(W_ and P_ model)
  • Unlimited Clip and BPAmmo
  • Sound of the knife
  • Knockback Power
  • Automatic Fire Pistol
  • Zoom

This plugin allows you to modify the damage, the recoil and the speed of the weapons, but not just set it, but also add, subtract, multiply or even divide to the default value of the gun.
It also allows you to modify the model of the gun in its three aspects (V_ , P_ , W_).
You can set the glow of all the guns (only W_ and P_ model).
You can put infinite bullets or magazines to the weapon you wish to.
You can also modify the sounds of the knife.
You can modify the knockback power of the weapon.
You can set the automatic fire to any pistol
You can set and change the zoom from weapon, except that weapon that have his respective attack2's function.



It consists of individual CVARs for each gun and an extra to control all the weapons.
If you want to deactivate the wm_damage_all wm_recoil_all wm_speed_all wm_wglow_all wm_pglow_all wm_unclip_all ,wm_unbpammo_all wm_kb_all or wm_zoom_kb you must set it in off, and not in 0.

The knockback have 3 aditionals cvars:
wm_knockback 0 (turn on/off the knockback)
wm_kb_zvel 1 (turn on/off the vertical push)
wm_kb_dist 500 (the distance that the knockback do default)



The plugin has a .cfg and .ini for you to configure the guns from there.
The X must be replaced by the desired damage , recoil , speed , unclip or unbpammo
And weaponname must be replaced by the name of the weapon.

Examples:
To add to the default value of the gun: wm_X_weaponname +1337
To subtract the default value of the gun: wm_X_weaponname -1337
To multiply the default value of the gun: wm_X_weaponname *1337
To divide the default value of the gun: wm_X_weaponname /1337
To set a value: wm_X_weaponname =1337

To set the glow of a weapon w_: wm_wglow_weaponname "255 128 33" [Red(0-255) Green(0-255) Blue(0-255)]
To set the glow of a weapon p_: wm_pglow_weaponname "255 128 33" [Red(0-255) Green(0-255) Blue(0-255)]

To set infinite bullets to a gun: wm_unclip_weaponname 1
To set infinite magazines to a gun: wm_unbpammo_weaponname 1

To set the knockback power of a weapon: wm_kb_weaponname 12.7

To set the automatic fire of a weapon: wm_autofire_weaponname 1

To set or modify the zoom of a weapon: wm_zoom_weaponname "0.3 190 60 30" <delay> <maxspeed> <zoom1> [zoom2(optional)]
Delay: delay to add when weapon will be usable after zoom : default cs seems to be 0.3
MaxSpeed: maxspeed a player can gain when the weapon is zoomed (put 0 to keep normal speed, unless you alter a sniper zoom)
Zoom1: 0-90 First zoom value. Default : aug and krieg552 : 55 , snipers 40
Zoom2: 0-90 Second zoom, put 90 for no 2nd zoom. Default: snipers : 15, Awp : 10
Weapon names:
  • p228
  • scout
  • xm1014
  • mac10
  • aug
  • elite
  • fiveseven
  • ump45
  • sg550
  • galil
  • famas
  • usp
  • glock18
  • awp
  • mp5navy
  • m249
  • m3
  • m4a1
  • tmp
  • g3sg1
  • deagle
  • sg552
  • ak47
  • knife
  • p90
  • all
Name of extra weapons for the wm_wglow_* and wm_pglow_* cvar:
  • thighpack (not work for pglow)
  • shield (not work for pglow)
  • hegrenade
  • c4
  • smokegrenade
  • flashbang
  • backpack (not work for pglow)


To change the model you just have to type the route of the model in the .ini file of the weapon.

For example:
If you want to change the model V_ and P_ of the AWP, you have to do as follows:
V_AWP = models/new_weapons/v_awp.mdl
P_AWP = models/new_weapons/p_awp.mdl

If you want to change the sound HITs of the knife, you have to do as follows:
KNIFE_HIT_1 = new_sound/knife_hit_1.wav
KNIFE_HIT_2 = new_sound/knife_hit_2.wav
KNIFE_HIT_3 = new_sound/knife_hit_3.wav
KNIFE_HIT_4 = new_sound/knife_hit_4.wav



dorin2oo7 -ConnorMcLeod - Bug fixing and optimizations, and the weapons zoom code (http://forums.alliedmods.net/showthr...ighlight=scope)
MeRcyLeZZ - For give me the way to put infinite bullets and infinite chargers and stocks, knockback code
Asd' - For the idea of P_ model glow
jc980 - For the idea of knockback and automatic fire pistol
XINLEI - For the idea of weapons zoom


Quote:
v1.56
- Fixed [HAMSANDWICH] Invalid player 16 (not in-game)
v1.55
- Added: Automatic Fire Pistol
- Added: Weapons Zoom
Views: 529
v1.53:
- Added: Knockback
- Added a new list of cvars, now you can configure the knockback power of the weapon
- Views: 9
v1.51:
- Fixed one error with the change of the models.
- Views: 72
v1.5:
- Added a new list of cvars, now you can configure the glow of the weapons (model W_ and P_ only).
- Fixed one error with the change of the models of some weapons.
- Some optimizations.
- Views: 43
v1.4:
- Changed the name of the files and the cvars.
- Added: Now you can change the sounds of the knife.
- Added one new list of cvar, now you can put infinite bullets in the guns.
- Added one new list of cvar, now you can put infinite magazines in the guns.
- Fixed one error.
- Views: 21
v1.31:
- Fixed a little bug with the load models
v1.3:
- Added a new list of cvars, now you can configure the glow of the weapons (model W_ only)
- Added more weapons to modify the model:
- p_thighpack , w_thighpack
- v_ / p_ / w_ of hegrenade , flashbang , smokegrenade , shield , c4
- w_backpack
- Views: 24
v1.1:
- Added: Now you can change the model of the weapons
- Views: 19
v1.0:
- First release
- Views: 37

* Place the weapon_modifier.ini and weapon_modifier.cfg file in addons/amxmodx/configs folder.
* Place the plugin's .amxx file in the addons/amxmodx/plugins folder.
* Add the plugin's name to addons/amxmodx/configs/plugins.ini. Example:
weapon_modifier.amxx
Attached Files
File Type: iniweapon_modifier.ini (1.4 KB)
File Type: cfgweapon_modifier.cfg (4.7 KB)
File Type: smaGet Plugin or Get Source (weapon_modifier.sma)

0 nhận xét:

Post a Comment