I would like to have available for scripting some functions existent in CS.
Particularly functions related to spectating. I don't know any method of manipulating that now. I would like to have them to make a plugin that would force players with the same IP to be able only to spectate their lanmates and a plugin that would make admins able to go through players by their scores, like the first one to spectate would be the person with the highest score and another plugin that when one player were carrying a knife and was closer to an enemy would force those who want to spectate him.
I guess those functions are:
Observer_FindNextPlayer
Observer_SetMode
Observer_HandleButtons
Observer_FindNextPlayer
A part from these i also would like to have:
FlashlightTurnOn
FlashlightTurnOff
To be able to use the flashlight button in plugins.
Also:
SetNewPlayerModel
SetPlayerModel
That I guess that would make clean the way of changing player models
Also:
SetAnimation
I understand the concept of hamsandwich and I know that with it and by knowing the function offsets in the entity virtual table one could easily add support to almost any function with it. My question is, if someone can find any of these offsets or point me to reading material to understand how to figure out how to get those offsets.
Apart from that, I learnt that by doing
PHP Code:
RegisterHam(Ham_ObjectCaps,"player",...
we can get everytime the use key is pressed and released, what would be great to improve plugins that handle the use key like the parachute one. My question is if it's really ObjectCaps being hooked and, if yes, if is safe to use it as to hook the use key usage or if it happens in more situations.
__________________