mirror of
https://github.com/nzp-team/quakec.git
synced 2025-02-16 09:01:41 +00:00
SERVER: Fix Power Switch position and scale in NZ:P Beta
This commit is contained in:
parent
973dfc113f
commit
78ad4ce386
2 changed files with 26 additions and 0 deletions
|
@ -62,6 +62,7 @@ inline void(entity ent) PU_FreeEnt =
|
|||
ent.touch = SUB_Null;
|
||||
ent.think = SUB_Null;
|
||||
ent.frame = 0;
|
||||
ent.scale = 1;
|
||||
ent.effects = 0;
|
||||
};
|
||||
|
||||
|
|
|
@ -290,6 +290,30 @@ void() Compat_ConvertBetaBarricade =
|
|||
|
||||
void() item_cover = {map_compatibility_mode = MAP_COMPAT_BETA; item_barricade(); Compat_ConvertBetaBarricade();};
|
||||
|
||||
//
|
||||
// NZ:P Beta Power Switch
|
||||
//
|
||||
|
||||
//
|
||||
// Compat_FixPowerSwitch
|
||||
// Power Switches had the same classname as they
|
||||
// do now, so we need to iterate over the world
|
||||
// and modify their scale and origin.
|
||||
//
|
||||
void() Compat_FixPowerSwitch =
|
||||
{
|
||||
entity power_switches = find(world, classname, "power_switch");
|
||||
|
||||
while(power_switches != world) {
|
||||
makevectors(power_switches.angles);
|
||||
power_switches.scale = 0.88;
|
||||
power_switches.origin += v_up*6;
|
||||
power_switches.origin += v_forward*10;
|
||||
|
||||
power_switches = find(power_switches, classname, "power_switch");
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// NZ:P Beta Perk-A-Cola Machines
|
||||
//
|
||||
|
@ -350,4 +374,5 @@ void() Compat_Init =
|
|||
|
||||
Compat_ConvertBetaWallWeapons();
|
||||
Compat_ConvertPropScaling();
|
||||
Compat_FixPowerSwitch();
|
||||
}
|
Loading…
Reference in a new issue