Bring us up to spec with the API

This commit is contained in:
Xylemon 2023-01-18 19:45:26 -08:00
parent f5ed927ccf
commit 756932537a
6 changed files with 17 additions and 22 deletions

View File

@ -35,11 +35,10 @@ item_ammo::touch(void)
Logging_Pickup(other, this, __NULL__);
if (cvar("sv_playerslots") == 1) {
remove(self);
Destroy();
} else {
Hide();
think = Respawn;
nextthink = time + 20.0f;
Disappear();
ScheduleThink(Respawn,20.0f);
}
}

View File

@ -56,11 +56,10 @@ item_battery::Touch(entity eToucher)
Sound_Play(other, CHAN_ITEM, "item.battery");
if (cvar("sv_playerslots") == 1) {
remove(self);
Destroy();
} else {
Hide();
think = Respawn;
nextthink = time + 20.0f;
Disappear();
ScheduleThink(Respawn,20.0f);
}
}

View File

@ -44,11 +44,10 @@ item_healthkit::Touch(entity eToucher)
Logging_Pickup(other, this, __NULL__);
if (cvar("sv_playerslots") == 1) {
remove(self);
Destroy();
} else {
Hide();
think = Respawn;
nextthink = time + 20.0f;
Disappear();
ScheduleThink(Respawn,20.0f);
}
}

View File

@ -59,11 +59,10 @@ item_rune_haste::Touch(entity eToucher)
super::UseTargets(this, TRIG_TOGGLE, 0.0f);
if (cvar("sv_playerslots") == 1) {
remove(self);
Destroy();
} else {
Hide();
think = Respawn;
nextthink = time + 30.0f;
Disappear();
ScheduleThink(Respawn,30.0f);
}
}

View File

@ -61,11 +61,10 @@ item_rune_stalker::Touch(entity eToucher)
super::UseTargets(this, TRIG_TOGGLE, 0.0f);
if (cvar("sv_playerslots") == 1) {
remove(self);
Destroy();
} else {
Hide();
think = Respawn;
nextthink = time + 30.0f;
Disappear();
ScheduleThink(Respawn,30.0f);
}
}

View File

@ -37,9 +37,9 @@ item_pickup::Touch(entity eToucher)
super::UseTargets(this, TRIG_TOGGLE, 0.0f);
if (real_owner || m_iWasDropped == 1 || cvar("sv_playerslots") == 1) {
remove(self);
Destroy();
} else {
Hide();
Disappear();
think = Respawn;
nextthink = time + 30.0f;
}