launch_spike(self.origin + self.view_ofs + v_up * -8 + v_right * ox, dir)
try that
try that
switch(engine)
{
case "darkplaces":
//do a bunch of stuff
break;
default:
//this engine doesn't support this
break;
}
//R00k this is a BUG, should be org not self.origin! //LightningDamage (self.origin, trace_endpos + v_forward*4, self, 30); LightningDamage (org, trace_endpos + v_forward*4, self, 30);
void(vector org, vector dir) launch_spike= { //org currently equals (self.origin+'0 0 16'+v_right*ox) }; void(float ox) W_FireSpikes= { //there is no org in this function launch_spike(self.origin+'0 0 16'+v_right*ox, some_var); };
float a = 20;
void(float x) a_func =
{
local float y = 100;
};
void() test =
{
local float z = x+y;
//error: wtf is an x and a y I can't find that
local float z = a;
//ok
};

Comment