Announcement

Collapse
No announcement yet.

Bored

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bored

    This is a crosspost from the QW forums but i thought I'd post it over here too...

    ok so I was bored and threw this together, it basically makes the lg into a pole vault.
    Might not be PRO gamer quality but its kinda funny non the less.

    Code:
    void(vector p1, vector p2, entity from, float damage) LightningDamage =
    {
    	traceline (p1, p2, FALSE, self);
    	if (trace_ent.takedamage)
    	{
    		particle (trace_endpos, '0 0 100', 225, damage*4);
    		T_Damage (trace_ent, from, from, damage);
    	}
    	else	//R00k, this allows a PUSH when shafting the floor, LG pole vaulting!!	
    	{
    		local vector dir;
    		if (trace_fraction != 1)
    		{
    			dir = (p1 - p2);
    			dir = normalize(dir);
    
    			from.velocity = (from.velocity + ((dir * damage) * 2.5));
    		}
    	}
    };
    www.quakeone.com/qrack | www.quakeone.com/cax| http://en.twitch.tv/sputnikutah
Working...
X