New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TTT: Add C4 Hooks #1283

Merged
merged 1 commit into from Dec 1, 2016

Conversation

Projects
None yet
6 participants
@markusmarkusz
Contributor

markusmarkusz commented Nov 30, 2016

Here are the C4 Hooks.

@Kefta

This comment has been minimized.

Contributor

Kefta commented Nov 30, 2016

Good DeMorgan's law

@robotboy655 robotboy655 added the TTT label Nov 30, 2016

@mcNuggets1

This comment has been minimized.

Contributor

mcNuggets1 commented Nov 30, 2016

Perfeeect.

@Acecool

This comment has been minimized.

Contributor

Acecool commented Nov 30, 2016

Actually quite useful but don't forget to create the base functions. If they don't exist the hook won't be called. I'd recommend sticking them in gamemode or GM...

@markusmarkusz

This comment has been minimized.

Contributor

markusmarkusz commented Nov 30, 2016

No. They don't have to exist as Gamemode Functions.

@Kefta

This comment has been minimized.

Contributor

Kefta commented Nov 30, 2016

@Acecool You're thinking of gamemode.Call. No need to have more empty GM functions

@svdm svdm merged commit d3d6523 into Facepunch:master Dec 1, 2016

@Acecool

This comment has been minimized.

Contributor

Acecool commented Dec 1, 2016

I always had issues; if I didn't make the blank function the hook.Add wouldn't run. I use gamemode for GM extensions ( so my addons will work regardless of whether they're used in gamemodes/ or addons/ because addons/ load prior to GM / GAMEMODE but gamemode exists )...

May have been an old glitch.. I'll double-check it next time I run my dev server.

@Kefta

This comment has been minimized.

Contributor

Kefta commented Dec 1, 2016

@markusmarkusz markusmarkusz deleted the markusmarkusz:patch-5 branch Feb 26, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment