X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fmutators%2Fmutator%2Fgamemode_onslaught.qc;h=bd4bb7af6a1a3bec5878ed6c5458067b91733034;hb=b683bf23a495d3b1b3f6df3bda75bfe0f069ab05;hp=78e6430181be8f5a460ac0ba057fd344fa167bcf;hpb=3f01af4a3f5d694062231a5ab86aea9f22ce0142;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/mutators/mutator/gamemode_onslaught.qc b/qcsrc/server/mutators/mutator/gamemode_onslaught.qc index 78e643018..bd4bb7af6 100644 --- a/qcsrc/server/mutators/mutator/gamemode_onslaught.qc +++ b/qcsrc/server/mutators/mutator/gamemode_onslaught.qc @@ -203,7 +203,7 @@ void ons_CaptureShield_Reset() void ons_CaptureShield_Spawn(entity generator, bool is_generator) { - entity shield = spawn(); + entity shield = new(ons_captureshield); shield.enemy = generator; shield.team = generator.team; @@ -211,7 +211,6 @@ void ons_CaptureShield_Spawn(entity generator, bool is_generator) shield.reset = ons_CaptureShield_Reset; shield.touch = ons_CaptureShield_Touch; shield.customizeentityforclient = ons_CaptureShield_Customize; - shield.classname = "ons_captureshield"; shield.effects = EF_ADDITIVE; shield.movetype = MOVETYPE_NOCLIP; shield.solid = SOLID_TRIGGER; @@ -712,12 +711,11 @@ void onslaught_controlpoint_icon_link(entity e, void() spawnproc); void ons_ControlPoint_Icon_Spawn(entity cp, entity player) { - entity e = spawn(); + entity e = new(onslaught_controlpoint_icon); setsize(e, CPICON_MIN, CPICON_MAX); setorigin(e, cp.origin + CPICON_OFFSET); - e.classname = "onslaught_controlpoint_icon"; e.owner = cp; e.max_health = autocvar_g_onslaught_cp_health; e.health = autocvar_g_onslaught_cp_buildhealth;