Raised This Month: $ Target: $400
 0% 

General hamsandwich questions


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 06-20-2009 , 01:31   General hamsandwich questions
Reply With Quote #1

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.
__________________
joaquimandrade is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode