mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-22 11:51:11 +00:00
SERVER: Apply speed penalty after teleporting, shorten weapon delay
This commit is contained in:
parent
dc67f93a6b
commit
b0afa183ba
1 changed files with 3 additions and 9 deletions
|
@ -163,17 +163,11 @@ void(entity who) teleport_entity =
|
|||
break;
|
||||
}
|
||||
|
||||
who.fire_delay = who.fire_delay2 = who.reload_delay = who.reload_delay2 = 3.0 + time;
|
||||
who.fire_delay = who.fire_delay2 = who.reload_delay = who.reload_delay2 = 2.0 + time;
|
||||
who.speed_penalty = 0.75;
|
||||
who.speed_penalty_time = time + 2;
|
||||
who.zoom = 0;
|
||||
who.weaponmodel = "";
|
||||
who.weapon2model = "";
|
||||
who.movetype = MOVETYPE_WALK;
|
||||
|
||||
// if (who.flags & FL_ONGROUND) {
|
||||
// who.flags = who.flags - FL_ONGROUND;
|
||||
// who.velocity = v_forward * 0;
|
||||
// }
|
||||
|
||||
who.flags = who.flags & FL_ONGROUND;
|
||||
who.velocity = '0 0 0';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue