Never worked with the Source engine, but:
[cpp]case FIREMODE_3RNDBURST:
m_iBurstSize = GetBurstSize();[/cpp]
GetBurstSize() seems to return how many shots to fire. The implementation is not contained in the code you posted, so you would have to jump into its definition in VS.
I found the definition, which had a value of 3, so I upped it to 9.
The gun now fires 3 rounds, but there is a delay of about a second between the 1st bullet and the 2nd & 3rd. Where might I adjust this timing without messing up the automatic mode's timing? This is the base class for several weapons, so I assume the timing would be located here.
This is where debugging will come in handy, I suggest that you put a breakpoint on GetBurstSize(), try to first figure out why it is only firing 1 when it is set to 3. Then you can figure out timing. Hopefully this will help you become familiar with Source, and prevent hack-y code.
So um, how do I use break points? Is there a tutorial somewhere I could follow?
[QUOTE=xXpyroHatakeXx;40000237]So um, how do I use break points? Is there a tutorial somewhere I could follow?[/QUOTE]
If you are using VS, click just left of the line you want the code to stop at, when a red dot appears, you have placed a breakpoint.
Alternatively click the line you want to add a breakpoint, click debugging in the menu navigation, and click add breakpoint.
These steps are relatively similar in most IDE's.
Alternatively: [i]Google it[/i]
More alternatively:
[vid]https://dl.dropbox.com/u/78160842/breakpoint.webm[/vid]
Yeah I was being lazy there asking for a tutorial, but thanks for not freaking out.
I'll be sure to post what I find!
Sorry, you need to Log In to post a reply to this thread.