Skip to content
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
Merged

TTT: Add C4 Hooks #1283

merged 1 commit into from Dec 1, 2016

Conversation

markusmarkusz
Copy link
Contributor

Here are the C4 Hooks.

@Kefta
Copy link
Contributor

Kefta commented Nov 30, 2016

Good DeMorgan's law

@robotboy655 robotboy655 added the TTT The pull request is for TTT and will be handled by svdm. label Nov 30, 2016
@mcNuggets1
Copy link
Contributor

Perfeeect.

@Acecool
Copy link
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
Copy link
Contributor Author

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

@Kefta
Copy link
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
Copy link
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
Copy link
Contributor

Kefta commented Dec 1, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TTT The pull request is for TTT and will be handled by svdm.
Projects
None yet
6 participants