Inside3D!
     

weapon coding questions

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



Joined: 16 Jun 2008
Posts: 52
Location: BELARUS

PostPosted: Tue Mar 10, 2009 9:56 pm    Post subject: weapon coding questions Reply with quote

All greetings. I want to set some questions.
1) How to make so that the weapon moved to the left to the right at movement of the player (as in Quake 3) ?
2) How to make so that the weapon slowly moved to the different sides when the player stands on a place?
3) How to make so that during shooting the screen twitched (feedback from the weapon)?

I am creating game for PPC so such programs as darkplaces cannot be used.
_________________
^O,..,o^
Back to top
View user's profile Send private message Visit poster's website
Lardarse



Joined: 05 Nov 2005
Posts: 243
Location: Bristol, UK

PostPosted: Wed Mar 11, 2009 12:17 am    Post subject: Reply with quote

1 and 2 can't be done purely from the QC. You will need to modify the model that is used as the player's displayed weapon. 1 Can be done in some engines (that have cvars for the position of the gun).

For 3, the only one that exists is an automated way is punchangle. Weapon firing functions set this to somewhere between -2 and -4, to give a slight backwards kick to the view. For a bigger kick, increase make the number more negative (but remember that it will only readjust slowly. Set it to -90 when you fire the shotgun and you will see what I mean).
Back to top
View user's profile Send private message
Freemanoid



Joined: 16 Jun 2008
Posts: 52
Location: BELARUS

PostPosted: Wed Mar 11, 2009 6:55 am    Post subject: Reply with quote

So as I understand I have to create some animation for weapon and place it to the game?
But how can it be made? I don't know how to use special animation in special cases.
Back to top
View user's profile Send private message Visit poster's website
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