View unanswered posts | View active topics It is currently Sat Dec 28, 2024 12:54 am



Reply to topic  [ 4 posts ] 
 How do I make weapons one-handed? 
Author Message
User avatar

Joined: Sat Oct 20, 2007 11:17 pm
Posts: 199
Reply with quote
Post How do I make weapons one-handed?
How do you allow a gun to come with a shield as well? I'm trying to make a shotgun, but I wnat to be able to use a sheild at the same time.


Sat Dec 15, 2007 8:57 pm
Profile
User avatar

Joined: Wed Jun 06, 2007 8:01 pm
Posts: 159
Location: I have the power!
Reply with quote
Post Re: I know this is a really noobish question, but how do you....
The shield is an offhand object.

Just take a look at the pistol code, as you can use that and a shield

Code:
   JointOffset = Vector
      X = -3
      Y = 2
   DrawAfterParent = 0
   OneHanded = 1  <<< This right here.
   StanceOffset = Vector
      X = 12
      Y = 0


The shotgun lacks that little bit right there.
So add it into whatever code your working on to make it one handed.


Sat Dec 15, 2007 9:00 pm
Profile
User avatar

Joined: Sat Oct 20, 2007 11:17 pm
Posts: 199
Reply with quote
Post Re: How do I make weapons one-handed?
Thanks, that worked. :grin:

my shotgun worked well.


Sat Dec 15, 2007 9:28 pm
Profile
User avatar

Joined: Thu Dec 13, 2007 8:16 pm
Posts: 18
Location: Yorkshire, England
Reply with quote
Post Re: How do I make weapons one-handed?
Much more simple than that, just add

OneHanded = 1

onto the end of the script :grin:


Update: Ignore that. Didn't read it proplerly... i need sleep :<


Sun Dec 16, 2007 2:42 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.038s | 13 Queries | GZIP : Off ]