}
float bumblebee_gunner_frame()
-{
+{SELFPARAM();
entity vehic = self.vehicle.owner;
entity gun = self.vehicle;
entity gunner = self;
}
void bumblebee_gunner_exit(int _exitflag)
-{
+{SELFPARAM();
entity player = self;
entity gunner = player.vehicle;
entity vehic = gunner.owner;
}
bool bumblebee_gunner_enter()
-{
+{SELFPARAM();
entity vehic = self;
entity player = other;
entity gunner = world;
}
bool vehicles_valid_pilot()
-{
+{SELFPARAM();
if(IS_BOT_CLIENT(other) && !autocvar_g_vehicles_allow_bots)
return false;
}
void bumblebee_touch()
-{
+{SELFPARAM();
if(autocvar_g_vehicles_enter) { return; }
if(self.gunner1 != world && self.gunner2 != world)
}
void bumblebee_regen()
-{
+{SELFPARAM();
if(self.gun1.delay + autocvar_g_vehicle_bumblebee_cannon_ammo_regen_pause < time)
self.gun1.vehicle_energy = min(autocvar_g_vehicle_bumblebee_cannon_ammo,
self.gun1.vehicle_energy + autocvar_g_vehicle_bumblebee_cannon_ammo_regen * frametime);
}
float bumblebee_pilot_frame()
-{
+{SELFPARAM();
entity pilot, vehic;
vector newvel;
}
void bumblebee_land()
-{
+{SELFPARAM();
float hgt;
hgt = raptor_altitude(512);
self.nextthink = time;
- CSQCMODEL_AUTOUPDATE();
+ CSQCMODEL_AUTOUPDATE(self);
}
void bumblebee_exit(float eject)
-{
+{SELFPARAM();
if(self.owner.vehicleid == VEH_BUMBLEBEE.vehicleid)
{
bumblebee_gunner_exit(eject);
}
void bumblebee_blowup()
-{
+{SELFPARAM();
RadiusDamage(self, self.enemy, autocvar_g_vehicle_bumblebee_blowup_coredamage,
autocvar_g_vehicle_bumblebee_blowup_edgedamage,
autocvar_g_vehicle_bumblebee_blowup_radius, self, world,
}
void bumblebee_diethink()
-{
+{SELFPARAM();
if(time >= self.wait)
self.think = bumblebee_blowup;
}
float bumble_raygun_send(entity to, float sf)
-{
+{SELFPARAM();
WriteByte(MSG_ENTITY, ENT_CLIENT_BUMBLE_RAYGUN);
WriteByte(MSG_ENTITY, sf);
}
void spawnfunc_vehicle_bumblebee()
-{
+{SELFPARAM();
if(!autocvar_g_vehicle_bumblebee) { remove(self); return; }
if(!vehicle_initialize(VEH_BUMBLEBEE, false)) { remove(self); return; }
}
float v_bumblebee(float req)
-{
+{SELFPARAM();
switch(req)
{
case VR_IMPACT:
}
void bumble_raygun_draw()
-{
+{SELFPARAM();
float _len;
vector _dir;
vector _vtmp1, _vtmp2;
}
void bumble_raygun_read(bool bIsNew)
-{
+{SELFPARAM();
int sf = ReadByte();
if(sf & BRG_SETUP)