
|
|
Author |
Message |
andy3012
DieHard Guard


Joined: 02 Jul 2004
Last Visit: 15 Feb 2008
Topics: 29
Posts: 292
Location: England

|
Posted: Fri Jul 16, 2004 1:44 pm
Subject: akimbo wepons, (duel wepons) or getting a gun to fire twice
[ IP : Logged ]
|

 
|
|
Im not sure how this is done, but i need something along the lines of this for my duel pistols, to make them fire twice. like you hit control and it makes it goes bang bang. and fires twice. If not im not bothered if there is just a way to make the sound affect play twice when you shoot the pistol. |
|
|
 |
jamez
I am Death Incarnate


Joined: 16 Mar 2003
Last Visit: 17 Jan 2019
Topics: 13
Posts: 186
Location: Yorkshire, UK

|
Posted: Mon Aug 23, 2004 7:42 am
Subject: Re: akimbo wepons, (duel wepons) or getting a gun to fire tw
[ IP : Logged ]
|

  
|
|
Search in wl_agent.c for wp_pistol then in that part before break change the gamestate.ammo -- 1 to 2 and with the sound, you'll have to do that youself to get it to repeat in the sound file
Thats just off the top of my head tho... |
_________________ ~ James
|
|
 |
Xarkon
DieHard Guard


Joined: 05 Jun 2003
Last Visit: 19 Apr 2006
Topics: 18
Posts: 203
Location: West Australia

|
Posted: Tue Aug 24, 2004 2:10 am
Subject: Re: akimbo wepons, (duel wepons) or getting a gun to fire tw
[ IP : Logged ]
|

  
|
|
With the chaingun weapon, even if you tap the button quickly, it fires off three shots. That's it's minimum, if you find this code you can do what ever.
Joel Corrigan  |
_________________ Trying is the first step to failure
|
|
 |
jamez
I am Death Incarnate


Joined: 16 Mar 2003
Last Visit: 17 Jan 2019
Topics: 13
Posts: 186
Location: Yorkshire, UK

|
|
 |
Sockdude
Can I Play Daddy


Joined: 05 May 2003
Last Visit: 25 Oct 2006
Topics: 1
Posts: 31

|
|
 |
jamez
I am Death Incarnate


Joined: 16 Mar 2003
Last Visit: 17 Jan 2019
Topics: 13
Posts: 186
Location: Yorkshire, UK

|
Posted: Wed Aug 25, 2004 3:37 am
Subject: Re: akimbo wepons, (duel wepons) or getting a gun to fire tw
[ IP : Logged ]
|

  
|
|
However it can be changes such as in PV the double machinegun fires 4 shots (as its 2 of the guns that fire 2 shots)  |
_________________ ~ James
|
|
 |
Guest

Last Visit:
|
Posted: Sun Aug 29, 2004 3:39 pm
Subject: Re: akimbo wepons, (duel wepons) or getting a gun to fire tw
[ IP : Logged ]
|

 
|
|
In my upcoming Spear TC "Orb of Ishkar" from my serries "Secrets of the Third Reich" I decided to have double P08 'Lugers' so heres how Im acheiving this affect:
Your attackinfo code is in WL_AGENT.C , here is what my pistols attackinfo looks like
::: CODE :::
{ {5,0,1},{7,1,3},{3,0,2},{7,1,4},{3,-1,1} },
You'll notice I've added another set of numbers thats fine though
Also here's the order I setup my animation frames for the pistols in the Vswap File:
Frame 1 is holding pistols, Frame 2 is rasing pistols to fire, Frame 3 is left pistol firing,
Frame 4 is right pistol firing, Frame 5 is pistols in raised posistion (same as frame 2)
As it is the pistols stop after each gun fires once so you have hit fire again.
You could adapt this to work slightly different however Im not sure how to get it so that it continues to fire without screwing up at the end if you change the '-1' in the last set of numbers youll see what I mean
Also you might want check the weapon behavior tutorial on MCS' Coding Tips section of AReyeP & MCS' Wolfenstein page.
Hopefuly this will help you I'm not realy good at writting tutorials or anything like that. |
|
|
 |
|
|
|
|
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
|
|
Copyright ©2003-2008 DieHard Wolfers
A Modified subBunker Theme by BrotherTank
Powered by phpBB © 2001, 2005 phpBB Group
|