CloudSixteen / Clockwork

A roleplaying framework developed by Cloud Sixteen for the people.
http://CloudSixteen.com
MIT License
44 stars 44 forks source link

Added a hook that gets called after the character initialized and knockback hook #526

Closed karl-police closed 5 years ago

karl-police commented 5 years ago

Added a hook that gets called after the character initialized

kurozael commented 5 years ago

Why would you call a hook called ‘OnPlayerCharacterInitialized’ inside a hook callback called ‘PlayerCharacterInitialized’? The hook already exists!

Also we don’t prefix hooks with ‘On’, and we call hooks with ‘cwPlugin:Call’ not with ‘hook.Call’ as that is just for regular GMod hooks.

karl-police commented 5 years ago

No, PlayerCharacterInitialized sadly doesn't work how I wanted it to work. I require OnPlayerCharacterInitialized, because I need all the information

which class got assigned, because after it got initialized it will check for the rank and assign it a class, which when I just use PlayerCharacterInitialized can not be achieved, it will give me the wrong information.

I really need a hook that gets called just right after that has been done.

karl-police commented 5 years ago

fixed the typo

karl-police commented 5 years ago

Added a new hook called PlayerCanTakeKnockbackFromDamage