Git Repos / fte_dogmode / qc / compat_quake3.qc
Last update to this file was on 2024-04-05 at 14:18.
Show compat_quake3.qc
//==============================================================================
// Quake 3 compatibility entrypoints / functions
//==============================================================================
//----------------------------------------------------------------------
void() spawnfunc_item_quad =
{
item_artifact_super_damage ();
};
//======================================================================
// Quake 3 armor item support -- CEV
//======================================================================
//----------------------------------------------------------------------
// 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 ();
};
//======================================================================
// Quake 3 health item support -- CEV
//======================================================================
//----------------------------------------------------------------------
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);
};
//======================================================================
// Quake 3 ammo & weapons -- CEV
//======================================================================
//----------------------------------------------------------------------
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);
};
//======================================================================
// Quake 3 push target entities -- CEV
//======================================================================
//----------------------------------------------------------------------
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 ();
};
//======================================================================
// Quake 3 Teleporter targets -- CEV
//======================================================================
//----------------------------------------------------------------------
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 ();
};
Return to the top of this page or return to the overview of this repo.
Log compat_quake3.qc
Date | Commit Message | Author | + | - |
---|---|---|---|---|
2024-04-05 | Player footsteps, shareware monsters, misc? | cev | +3 | -3 |
2024-03-24 | 2nd pass refactor, rework QC class structure | cev | +80 | -33 |
2024-01-13 | Refactored items into classes, fix teleporttrain | cev | +30 | -61 |
2023-12-09 | Start OO / class-based refactor, work on items | cev | +11 | -20 |
2023-12-02 | More refactoring & moving, begin adding mdls & snd | cev | +4 | -1 |
2023-11-20 | changes to movement, build environment, file reorg | cev | +88 | -11 |
2023-11-16 | pmove bug fixes, moved q3 compat code, cleanup | cev | +76 |
Return to the top of this page or return to the overview of this repo.