Expose horn sounds to Lua
This commit is contained in:
parent
d4bd7b68cf
commit
5efbc22a01
1 changed files with 5 additions and 0 deletions
|
|
@ -35,6 +35,7 @@ enum follower {
|
|||
follower_anglelag,
|
||||
follower_bobamp,
|
||||
follower_bobspeed,
|
||||
follower_hornsound,
|
||||
// states
|
||||
follower_idlestate,
|
||||
follower_followstate,
|
||||
|
|
@ -63,6 +64,7 @@ static const char *const follower_opt[] = {
|
|||
"anglelag",
|
||||
"bobamp",
|
||||
"bobspeed",
|
||||
"hornsound",
|
||||
// states
|
||||
"idlestate",
|
||||
"followstate",
|
||||
|
|
@ -134,6 +136,9 @@ static int follower_get(lua_State *L)
|
|||
case follower_bobspeed:
|
||||
lua_pushinteger(L, follower->bobspeed);
|
||||
break;
|
||||
case follower_hornsound:
|
||||
lua_pushinteger(L, follower->hornsound);
|
||||
break;
|
||||
case follower_idlestate:
|
||||
lua_pushinteger(L, follower->idlestate);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue