X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Ft_halflife.qc;h=f041dd39659aebd31a8b375b6e14d1fd51820f1c;hb=adb2d69f779ab14c316ca8337894c29adcbeb272;hp=32d597937cc2a422b35176da195cd697ed6b1c90;hpb=263c592e468eeeffb2755d204b21eb13e398adac;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/t_halflife.qc b/qcsrc/server/t_halflife.qc index 32d597937..f041dd396 100644 --- a/qcsrc/server/t_halflife.qc +++ b/qcsrc/server/t_halflife.qc @@ -1,11 +1,3 @@ -#include "_all.qh" - -#include "../warpzonelib/util_server.qh" -#include "vehicles/vehicle.qh" - -.float ladder_time; -.entity ladder_entity; - .float roomtype; .float radius; .float pitch; @@ -40,30 +32,3 @@ void spawnfunc_info_node() {} void spawnfunc_env_sound() {} void spawnfunc_light_spot() {} void spawnfunc_func_healthcharger() {} - - -void func_ladder_touch() -{ - if (!other.iscreature) - return; - if (other.vehicle_flags & VHF_ISVEHICLE) - return; - - EXACTTRIGGER_TOUCH; - - other.ladder_time = time + 0.1; - other.ladder_entity = self; -} - -void spawnfunc_func_ladder() -{ - EXACTTRIGGER_INIT; - self.touch = func_ladder_touch; -} - -void spawnfunc_func_water() -{ - EXACTTRIGGER_INIT; - self.touch = func_ladder_touch; -} -