this.alpha = 1;
this.avelocity = '0 0 0';
this.velocity = '0 0 0';
- this.effects = eff;
+ if (this.optionalsetup)
+ this.effects = EF_DIMLIGHT;
+ else
+ this.effects = eff;
Vehicle info = this.vehicledef; //REGISTRY_GET(Vehicles, this.vehicleid);
info.vr_setcolors(info, this);
entity spawnvehicle (entity e, string vehicle, Vehicle veh, entity spawnedby, entity own, vector orig, bool respwn, bool removeifinvalid)
{
e.spawnflags = VHF_MULTISLOT;
+ e.optionalsetup = true;
// TODO: Make a respawn option, the following line isn't functional
if(!respwn) { e.spawnflags |= VHF_ISVEHICLE; }
// e.angles = '0 0 0';
e.velocity = randomvec() * 150 + '0 0 325';
e.spawnfunc_checked = true;
- time = 0.6;
+ time = 0.7;
vehicle_initialize(e, veh, true);