Forum

strong kickback?

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

strong kickback?

Postby MeTcHsteekle » Mon Oct 27, 2008 2:46 am

does anyone know how to get that strong kick back effect where when u shoot the weapon you fly back? :0
bah
MeTcHsteekle
 
Posts: 399
Joined: Thu May 15, 2008 10:46 pm
Location: its a secret

Postby Spike » Mon Oct 27, 2008 3:28 am

self.velocity = self.velocity + (v_forward * -600) + (v_up * 200);

(up is needed in order to stop friction with the floor)

That'll throw the player backwards.

something like that?

optionally, makevectors (self.v_angle_y * '0 1 0' + self.v_angle_z * '0 0 1'); just before...
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby MeTcHsteekle » Mon Oct 27, 2008 5:13 pm

thats it exactlly, thanks :D
bah
MeTcHsteekle
 
Posts: 399
Joined: Thu May 15, 2008 10:46 pm
Location: its a secret


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest