Zeus with clip size 10, how?
Can someone show me how in a plugin to modify the Zeus so it has a clip/mag size of 10?
I want to have ten shots but still force reloading after every single shot. Thanks. |
Re: Zeus with clip size 10, how?
Quote:
but you can change clip ammo plugin way or server-side ======== server-side ======== csgo\scripts\items\items_game.txt Code:
"weapon_taser_prefab" --------------------------------------------- plugin idk you have alot of options cooldown PHP Code:
or you can FakeClientCommand(client, "use weapon_knife") ->> force switch from any to knife then FakeClientCommand(client, "use weapon_taser") do like cooldown or block timer it depend your goal |
Re: Zeus with clip size 10, how?
Just count how many times a client has fired the taser and remove the weapon once the limit is reached. For the cooldown just use the built in "mp_taser_recharge_time".
|
Re: Zeus with clip size 10, how?
1 Attachment(s)
Thanks for all the great info everyone.
I used this method to modify the clip size and range and it adds a nice extra feature to my bot server. "range" "50" "primary clip size" "10" "primary default clip size" "10" "secondary default clip size" "10" I turns out everyone likes the rapid fire so no need to do the reload, but I noticed this items_game.txt seems to be updated about every csgo update and I don't want the hassle of always updating it. (on a server at gameservers.com and no way to use a bat file for updates) I would perfer a plugin. How would I modify the zeus clip size and range in a sm plugin? Is it best to hook the item spawn event and look for a zeus and then modfy all of them there? and how exactly to modify clip and range? tx |
Re: Zeus with clip size 10, how?
need PTaH Extension
choose your os sig and complie PHP Code:
|
Re: Zeus with clip size 10, how?
Quote:
I built the plugin and I am using this ext.dll https://github.com/komashchenko/PTaH/releases This modifies the mag size and the distance but it doesn't do any damage! I know weird but I tested it 2x times and this plugin definitely 1) modifies the clip (mag) size 2) modifies the distance 3) modifies the zeus to do no damage! Why? NOTE: I had a typo in my original post. THe distance I am setting is 500 not 50. |
Re: Zeus with clip size 10, how?
sorry the m_range is stored float in memory
so it should be PHP Code:
|
Re: Zeus with clip size 10, how?
Quote:
Excellent Thanks! I also added these server settings. mp_taser_recharge_time 1 // The time in seconds until the taser can shoot again after its shot. mp_weapons_allow_zeus 10 // how many zeus purchases per round allowed These give some nice features. At the start the taser has 10 shots showing and they are rapid fire shots. After this it shows 1 in the clip (mag) And this is not rapid fire but takes mp_taser_recharge_time to shoot again and this one shot never expires. You can purchase another taser to get a new 10 rapid firs shots. Perfect! |
All times are GMT -4. The time now is 18:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.