Inside3D!
     

strong kickback?

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming
View previous topic :: View next topic  
Author Message
MeTcHsteekle



Joined: 15 May 2008
Posts: 397
Location: its a secret

PostPosted: Mon Oct 27, 2008 2:46 am    Post subject: strong kickback? Reply with quote

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
View user's profile Send private message AIM Address
Spike



Joined: 05 Nov 2004
Posts: 944
Location: UK

PostPosted: Mon Oct 27, 2008 3:28 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
MeTcHsteekle



Joined: 15 May 2008
Posts: 397
Location: its a secret

PostPosted: Mon Oct 27, 2008 5:13 pm    Post subject: Reply with quote

thats it exactlly, thanks Very Happy
_________________
bah
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group