Merge branch 'playerspawn-hook' into 'next'

Add PlayerSpawn hook to Lua

I don't know how I did this but I did. Something about staring at code from 3AM till 5AM...

Here's a test script too:

```Lua
addHook("PlayerSpawn", function(player) player.health = 99 end)

```

See merge request !48
This commit is contained in:
Monster Iestyn 2016-03-04 10:19:18 -05:00
commit 4302cfaa00
3 changed files with 8 additions and 0 deletions

View file

@ -53,6 +53,7 @@ const char *const hookNames[hook_MAX+1] = {
"LinedefExecute",
"PlayerMsg",
"HurtMsg",
"PlayerSpawn",
NULL
};