NS and weapon damage - not working?
I am attempting to write a simple joke script at the request of a friend that sets the damage of the welder to absurd levels. After a billion different tries I've come to the conclusion that either ns_set_weap_dmg and ns_get_weap_dmg are completely non working or I am an idiot and I'm hoping someone can tell me which is the case. Here is the last script I tried
Code:
#include <amxmodx>Code:
Weapon 18 set to 6000.0 damageI'm guessing I can't properly program in small and I screwed up a data type or 12 in here. Thanks in advance! -Onlysolution |
ns_get_weap_dmg(weapon_ID)/ns_set_weap_dmg(weapon_ID)
u need to give the weapon ID not the weapon number WEAPON_WELDER is a weapon number i suggest: 1) cycle through all ents 2) check each ent if its a welder 3) if welder check if it belongs to the player u want to increase damage now u have the weapon ID and u can use both functions my gnome plugin is dioing it this way |
Thanks a bunch! The code I wound up using wasn't quite as intense though:
Code:
#include <amxmodx> |
| All times are GMT -4. The time now is 10:02. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.