View previous topic :: View next topic |
Author |
Message |
MeTcHsteekle
Joined: 15 May 2008 Posts: 397 Location: its a secret
|
Posted: Mon Oct 27, 2008 2:46 am Post subject: strong kickback? |
|
|
does anyone know how to get that strong kick back effect where when u shoot the weapon you fly back? :0 _________________ bah |
|
Back to top |
|
 |
Spike
Joined: 05 Nov 2004 Posts: 944 Location: UK
|
Posted: Mon Oct 27, 2008 3:28 am Post subject: |
|
|
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... _________________ What's a signature? |
|
Back to top |
|
 |
MeTcHsteekle
Joined: 15 May 2008 Posts: 397 Location: its a secret
|
Posted: Mon Oct 27, 2008 5:13 pm Post subject: |
|
|
thats it exactlly, thanks  _________________ bah |
|
Back to top |
|
 |
|