X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fvehicles%2Fvehicle.qh;h=8da44a459a991962ac4e601a282dd025e02b59ac;hb=9d5295bb4213f6c703d43d158605efe893514ee4;hp=4e3b7b8729f374a104a449cd9ac0943ae40de8b6;hpb=b870fa4148e978743c89ea51cbc7d6bf9c608612;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/vehicles/vehicle.qh b/qcsrc/common/vehicles/vehicle.qh index 4e3b7b872..8da44a459 100644 --- a/qcsrc/common/vehicles/vehicle.qh +++ b/qcsrc/common/vehicles/vehicle.qh @@ -51,6 +51,8 @@ CLASS(Vehicle, Object) METHOD(Vehicle, vr_spawn, void(Vehicle this, entity instance)) { } /** (SERVER) called when a vehicle hits something */ METHOD(Vehicle, vr_impact, void(Vehicle this, entity instance)) { } + /** (SERVER) called when a vehicle's colors are being reset, so modules can be updated */ + METHOD(Vehicle, vr_setcolors, void(Vehicle this, entity instance)) { } /** (CLIENT) logic to run every frame */ METHOD(Vehicle, vr_hud, void(Vehicle this)) { } /** (CLIENT) logic to run every frame */ @@ -75,3 +77,4 @@ const int VHF_PLAYERSLOT = BIT(14); /// This ent is a player slot on a multi-pe // fields: .entity tur_head; +.entity vehicledef;