Git Repos / fte_dogmode / qc / compat / quake3.qc
Last update to this file was on 2024-06-15 at 19:50.
Show quake3.qc
//==============================================================================
// Quake 3 compatibility entrypoints / functions
//==============================================================================
#ifdef SSQC
//----------------------------------------------------------------------
void() spawnfunc_item_quad =
{
item_artifact_super_damage ();
};
#endif
//======================================================================
// Quake 3 armor item support -- CEV
//======================================================================
#ifdef SSQC
//----------------------------------------------------------------------
// Green Armor
//----------------------------------------------------------------------
void() spawnfunc_item_armor_jacket =
{
item_armor1 ();
};
//----------------------------------------------------------------------
// Yellow Armor
//----------------------------------------------------------------------
void() spawnfunc_item_armor_combat =
{
item_armor2 ();
};
//----------------------------------------------------------------------
// Red Armor
//----------------------------------------------------------------------
void() spawnfunc_item_armor_body =
{
item_armorInv ();
};
#endif
//======================================================================
// Quake 3 health item support -- CEV
//======================================================================
#ifdef SSQC
//----------------------------------------------------------------------
void() spawnfunc_item_health_mega =
{
// new spawnflags for all entities -- iw
if (SUB_Inhibit ())
return;
self.classname = "item_health";
self.spawnflags |= 2;
item_health_init (self);
};
//----------------------------------------------------------------------
void() spawnfunc_item_health_small =
{
// new spawnflags for all entities -- iw
if (SUB_Inhibit ())
return;
self.classname = "item_health_vial";
item_health_vial_init (self);
};
#endif
//======================================================================
// Quake 3 ammo & weapons -- CEV
//======================================================================
#ifdef SSQC
//----------------------------------------------------------------------
void() spawnfunc_ammo_cells =
{
item_spikes ();
};
//----------------------------------------------------------------------
void() spawnfunc_ammo_grenades =
{
item_rockets ();
};
//----------------------------------------------------------------------
void() spawnfunc_ammo_lightning =
{
item_cells ();
};
//----------------------------------------------------------------------
void() spawnfunc_ammo_rockets =
{
item_rockets ();
};
//----------------------------------------------------------------------
void() spawnfunc_ammo_shells =
{
item_shells ();
};
//----------------------------------------------------------------------
void() spawnfunc_weapon_plasmagun =
{
// new spawnflags for all entities -- iw
if (SUB_Inhibit ())
return;
self.classname = "weapon_supernailgun";
weapon_supernailgun_init (self);
};
#endif
//======================================================================
// Quake 3 push target entities -- CEV
//======================================================================
#ifdef SSQC
//----------------------------------------------------------------------
void() spawnfunc_target_push =
{
// new spawnflags for all entities -- iw
if (SUB_Inhibit ())
return;
if (!self.targetname)
if (self.target != __NULL__ && self.target != "")
// quake 3 compat -- CEV
self.targetname = self.target;
else
objerror ("no targetname");
};
//----------------------------------------------------------------------
void() spawnfunc_target_position =
{
self.classname = "target_push";
spawnfunc_target_push ();
};
#endif
//======================================================================
// Quake 3 Teleporter targets -- CEV
//======================================================================
#ifdef SSQC
//----------------------------------------------------------------------
void() spawnfunc_misc_teleport_dest =
{
info_teleport_destination ();
};
//----------------------------------------------------------------------
void() spawnfunc_misc_teleporter_dest =
{
info_teleport_destination ();
};
//----------------------------------------------------------------------
void() spawnfunc_misc_teleporter_destination =
{
info_teleport_destination ();
};
//----------------------------------------------------------------------
void() spawnfunc_target_teleporter =
{
info_teleport_destination ();
};
#endif
Return to the top of this page or return to the overview of this repo.
Log quake3.qc
Date | Commit Message | Author | + | - |
---|---|---|---|---|
2024-06-15 | Major update, committing as-is, will have bugs | cev | +175 |
Return to the top of this page or return to the overview of this repo.