@@ -82,6 +82,33 @@ void RegisterClasses(sol::state* Lua) {
8282}
8383
8484void InitGlobals (sol ::state * Lua ) {
85+ /*** GENERIC CONSTANTS ***/
86+ Lua -> new_enum ("ServerOption" ,
87+ "deathMessages" , vcmpServerOption ::vcmpServerOptionDeathMessages ,
88+ "driveBy" , vcmpServerOption ::vcmpServerOptionDisableDriveBy ,
89+ "driveOnWater" , vcmpServerOption ::vcmpServerOptionDriveOnWater ,
90+ "fastSwitch" , vcmpServerOption ::vcmpServerOptionFastSwitch ,
91+ "flyingCars" , vcmpServerOption ::vcmpServerOptionFlyingCars ,
92+ "frameLimit" , vcmpServerOption ::vcmpServerOptionFrameLimiter ,
93+ "friendlyFire" , vcmpServerOption ::vcmpServerOptionFriendlyFire ,
94+ "joinMessages" , vcmpServerOption ::vcmpServerOptionJoinMessages ,
95+ "jumpSwitch" , vcmpServerOption ::vcmpServerOptionJumpSwitch ,
96+ "shootInAir" , vcmpServerOption ::vcmpServerOptionShootInAir ,
97+ "nametags" , vcmpServerOption ::vcmpServerOptionShowNameTags ,
98+ "teamMarkersOnly" , vcmpServerOption ::vcmpServerOptionOnlyShowTeamMarkers ,
99+ "stuntBike" , vcmpServerOption ::vcmpServerOptionStuntBike ,
100+ "syncFrameLimiter" , vcmpServerOption ::vcmpServerOptionSyncFrameLimiter ,
101+ "taxiBoostJump" , vcmpServerOption ::vcmpServerOptionTaxiBoostJump ,
102+ "wallGlitch" , vcmpServerOption ::vcmpServerOptionWallGlitch ,
103+ "deathMessages" , vcmpServerOption ::vcmpServerOptionDeathMessages ,
104+ "classes" , vcmpServerOption ::vcmpServerOptionUseClasses ,
105+ "chatTags" , vcmpServerOption ::vcmpServerOptionChatTagsEnabled ,
106+ "backfaceCulling" , vcmpServerOption ::vcmpServerOptionDisableBackfaceCulling ,
107+ "heliBladeDamage" , vcmpServerOption ::vcmpServerOptionDisableHeliBladeDamage ,
108+ "perfectHandling" , vcmpServerOption ::vcmpServerOptionPerfectHandling ,
109+ "showMarkers" , vcmpServerOption ::vcmpServerOptionShowMarkers
110+ );
111+
85112 Lua -> new_enum ("DisconnectReason" ,
86113 "timeout" , vcmpDisconnectReason ::vcmpDisconnectReasonTimeout ,
87114 "quit" , vcmpDisconnectReason ::vcmpDisconnectReasonQuit ,
@@ -105,6 +132,8 @@ void InitGlobals(sol::state* Lua) {
105132 "inVehicle" , vcmpBodyPart ::vcmpBodyPartInVehicle
106133 );
107134
135+ /*** PLAYER CONSTANTS ***/
136+
108137 Lua -> new_enum ("PlayerState" ,
109138 "none" , vcmpPlayerState ::vcmpPlayerStateNone ,
110139 "normal" , vcmpPlayerState ::vcmpPlayerStateNormal ,
@@ -140,6 +169,8 @@ void InitGlobals(sol::state* Lua) {
140169 "drunkEffects" , vcmpPlayerOption ::vcmpPlayerOptionDrunkEffects
141170 );
142171
172+ /*** VEHICLE CONSTANTS ***/
173+
143174 Lua -> new_enum ("VehicleUpdate" ,
144175 "driverSync" , vcmpVehicleUpdate ::vcmpVehicleUpdateDriverSync ,
145176 "otherSync" , vcmpVehicleUpdate ::vcmpVehicleUpdateOtherSync ,
@@ -169,6 +200,8 @@ void InitGlobals(sol::state* Lua) {
169200 "turnRelative" , vcmpVehicleSpeed ::TurnRelative
170201 );
171202
203+ /*** PICKUP CONSTANTS ***/
204+
172205 Lua -> new_enum ("PickupOption" ,
173206 "singleUse" , vcmpPickupOption ::vcmpPickupOptionSingleUse ,
174207 "forceSize" , vcmpPickupOption ::forceSizeVcmpPickupOption
0 commit comments