View Single Post
mewbie222
Senior Member
Join Date: May 2018
Old 12-16-2022 , 08:45   Re: [DOD:s]fix [DoDS] Class Restrictions for individual players..
Reply With Quote #7

Quote:
Originally Posted by Bacardi View Post
*edit
Also, server can send to client ConVar value (mp_limit_axis_rifleman 0). This will show on client screen in class menu that class is full/limited, but it not prevent player to choose it though.
But it is nice indicator.
By the way, yes, there was such a thought, but I still don’t know how to implement it. Yes, and programming, as it were, a noob = I’m learning .. Some more things were done for me ..
And so I had 3 versions of execution or rewrite this code using SDHook, but I don’t know how everything will be in this regard., if I wrote about it in the first message
Quote:
Is it possible to add a ban on weapons, at the SDKHook level, as I understand it, this should be used:
SDKHook_WeaponEquip, SDKHook_WeaponCanUse or ...
But either during the game, check the class from which it plays and stupidly select ...
and 3 play around with it
Quote:
HookEvent("player_changeclass", ChangeClassEvent, EventHookMode_Pre)
For example, not _Pre but _Post, that is, after checking ..or generally remove this EventHookMode_Pre additional parameter.
ps I hope I spelled it out clearly
mewbie222 is offline