X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Ftriggers%2Ffunc%2Fvectormamamam.qc;h=18d58d649177124543cec55d6834644e99ec58f9;hb=268f9c69576b6bb929f66d19f0d077d19ba47edd;hp=a336c8b7e289e146b506f2100aa950c4c4d52c1f;hpb=df2fe9b28cb6210b671bec6d5ae834ff4eb2e2db;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/triggers/func/vectormamamam.qc b/qcsrc/common/triggers/func/vectormamamam.qc index a336c8b7e..18d58d649 100644 --- a/qcsrc/common/triggers/func/vectormamamam.qc +++ b/qcsrc/common/triggers/func/vectormamamam.qc @@ -1,3 +1,4 @@ +#include "vectormamamam.qh" #ifdef SVQC // reusing some fields havocbots declared .entity wp00, wp01, wp02, wp03; @@ -74,16 +75,16 @@ void func_vectormamamam_controller_think(entity this) void func_vectormamamam_findtarget(entity this) { if(this.target != "") - this.wp00 = find(world, targetname, this.target); + this.wp00 = find(NULL, targetname, this.target); if(this.target2 != "") - this.wp01 = find(world, targetname, this.target2); + this.wp01 = find(NULL, targetname, this.target2); if(this.target3 != "") - this.wp02 = find(world, targetname, this.target3); + this.wp02 = find(NULL, targetname, this.target3); if(this.target4 != "") - this.wp03 = find(world, targetname, this.target4); + this.wp03 = find(NULL, targetname, this.target4); if(!this.wp00 && !this.wp01 && !this.wp02 && !this.wp03) objerror(this, "No reference entity found, so there is nothing to move. Aborting."); @@ -117,16 +118,16 @@ spawnfunc(func_vectormamamam) if(!this.target4factor) this.target4factor = 1; - if(vlen(this.targetnormal)) + if(this.targetnormal) this.targetnormal = normalize(this.targetnormal); - if(vlen(this.target2normal)) + if(this.target2normal) this.target2normal = normalize(this.target2normal); - if(vlen(this.target3normal)) + if(this.target3normal) this.target3normal = normalize(this.target3normal); - if(vlen(this.target4normal)) + if(this.target4normal) this.target4normal = normalize(this.target4normal); setblocked(this, generic_plat_blocked);