Add/modify weapons in cl_setrebuy
How do I add let's say m4a1 into a player's cl_setrebuy commands.
I've done some debugging of the command but the args are PrimaryWeapon SecondaryWeapon and not the actual weapon names. Also, is it possible to add m4a1 into a Terrorist player's cl_setrebuy cmd without changing the player's team pdata or something like that? |
Re: Add/modify weapons in cl_setrebuy
What are you exactly trying to achieve?
|
Re: Add/modify weapons in cl_setrebuy
Isn't it obvious? I want to manually edit a player's cl_setrebuy arguments, adding m4a1 into a Terrorist player's cl_setrebuy.
I've made a plugin to allow CTs buy Ts-specific weapons and vice versa and now I would like the players that did so in the last round can buy the same weapon by simply using rebuy command. |
Re: Add/modify weapons in cl_setrebuy
rebuy/autobuy rules are same as default buy, so it won't work.
|
Re: Add/modify weapons in cl_setrebuy
What do you mean by default buy rules? Can you explain more on that?
|
Re: Add/modify weapons in cl_setrebuy
He means that the same restrictions that exist in the buy menu exist for rebuy/autobuy
|
Re: Add/modify weapons in cl_setrebuy
I still don't know which rules ConnorMcLeod meant
|
Re: Add/modify weapons in cl_setrebuy
The rule that prevents CT's from purchasing T weapons and vise versa
|
Re: Add/modify weapons in cl_setrebuy
Well, you can change the player's team offset first then engclient_cmd(index, "m4a1") to make him able to buy m4a1. What about the rebuy, will doing the same thing make it work?
|
| All times are GMT -4. The time now is 23:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.