Quote:
Originally Posted by dor123
Ok, but what does it do besides that? or that is the main action the function do? how do I use it? when? like the following?
PHP Code:
register_forward(FM_PlayerPreThink, "my_func")
Is PlayerPre/PostThink an event? If it is, what event is it?
Why should I use it? Could you give me an example of things that would be good to have them working repetetively on an amount of x miliseconds?
|
There are forwards which take place one a specific event like FM_EmitSound.
And There are forwards which repeat themselves on an entity->
There are 3 forwards which I have used that repeat themselves ->
These are (from fakemeta) : FM_PlayerPreThink FM_PlayerPostThink, and FM_Think
That means that an entity (FM_Think) / player (FM_player...) is thinking.
It is a forward which is called by the engine every 0.0... miliseconds.
The diference between them is that FM_Think is used for entities and FM_Player... takes place for players.
These thinks are a tasks which repeats itself the way I said a bit earlyer.
Hamsandwich is good becouse it offers a lot of functions which are the things that fakemeta didn't have.
For example: Ham_TakeDamage is one of the best functions (at least I think so

) that is offered by that module.
My opinion is that the combination of Fakemeta and Hamsandwich = The BEST!!!
__________________