1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Add aliases for color and colour.

This commit is contained in:
Sandu Liviu Catalin 2016-05-24 04:59:36 +03:00
parent 82c3fa4439
commit efa578e8a6

View File

@ -161,6 +161,7 @@ void Register_Constants(HSQUIRRELVM vm)
.Const(_SC("PlayerHeading"), EVT_PLAYERHEADING)
.Const(_SC("PlayerPosition"), EVT_PLAYERPOSITION)
.Const(_SC("PlayerOption"), EVT_PLAYEROPTION)
.Const(_SC("VehicleColor"), EVT_VEHICLECOLOUR)
.Const(_SC("VehicleColour"), EVT_VEHICLECOLOUR)
.Const(_SC("VehicleHealth"), EVT_VEHICLEHEALTH)
.Const(_SC("VehiclePosition"), EVT_VEHICLEPOSITION)
@ -207,6 +208,7 @@ void Register_Constants(HSQUIRRELVM vm)
.Const(_SC("OtherSync"), vcmpVehicleUpdateOtherSync)
.Const(_SC("Position"), vcmpVehicleUpdatePosition)
.Const(_SC("Health"), vcmpVehicleUpdateHealth)
.Const(_SC("Color"), vcmpVehicleUpdateColour)
.Const(_SC("Colour"), vcmpVehicleUpdateColour)
.Const(_SC("Rotation"), vcmpVehicleUpdateRotation)
.Const(_SC("Max"), vcmpVehicleUpdateRotation)
@ -231,7 +233,7 @@ void Register_Constants(HSQUIRRELVM vm)
.Const(_SC("Max"), vcmpDisconnectReasonAntiCheat)
);
ConstTable(vm).Enum(_SC("SqBodypart"), Enumeration(vm)
ConstTable(vm).Enum(_SC("SqBodyPart"), Enumeration(vm)
.Const(_SC("Unknown"), SQMOD_UNKNOWN)
.Const(_SC("Body"), vcmpBodyPartBody)
.Const(_SC("Torso"), vcmpBodyPartTorso)