|
|
Line 1: |
Line 1: |
| [http://grise.servemp3.com/small/slutty-mom.htm slutty mom] [http://coral.servemp3.com/big-black-tits.htm big black tits] [http://estate.servemp3.com/html/nice-boob-flashers.html nice boob flashers] [http://coral.servemp3.com/song-midi-file-download.htm song midi file download] [http://ousel.servemp3.com/naked-women-wallpaper.html naked women wallpaper] [http://beard.servemp3.com/data/whore-abuse.html whore abuse] [http://wails.servemp3.com/young-girls.html young girls breasts] [http://grise.servemp3.com/small/viagra-pharmacy.htm viagra pharmacy] [http://sheets.servemp3.com/articles/gsp.html gsp] [http://grise.servemp3.com/small/eastern-ontario.htm eastern ontario auto trader] [http://along.servemp3.com/view/jay-z-song-lyric.htm jay z song lyric] [http://falter.servemp3.com/sony-laptop-harddrives.html sony laptop harddrives] [http://grise.servemp3.com/small/lolitabuffet.htm lolitabuffet] [http://cease.servemp3.com/cruise-discounts.html cruise discounts] [http://beard.servemp3.com/data/self-sucking-men.html self sucking men] [http://estate.servemp3.com/html/osborn-high-school.html osborn high school] [http://grise.servemp3.com/small/pci.htm pci] [http://sheets.servemp3.com/articles/san-diego-defense.html san diego defense contractors] [http://uglier.servemp3.com/resources/happy.html happy] [http://cease.servemp3.com/dental-insurance.html dental insurance for family] [http://wails.servemp3.com/south-florida.html south florida realestate] [http://falter.servemp3.com/library-science.html library science programs in virginia] [http://estate.servemp3.com/html/do-you-believe.html do you believe in magic] [http://ousel.servemp3.com/cunt-wet.html cunt wet] [http://wails.servemp3.com/gay-dilf.html gay dilf] [http://along.servemp3.com/view/sample-blowjob.htm sample blowjob video] [http://falter.servemp3.com/teen-boner.html teen boner] [http://ousel.servemp3.com/salmon-patties.html salmon patties] [http://cease.servemp3.com/land-scape-of-costa.html land scape of costa rica] [http://along.servemp3.com/view/folding-american.htm folding american flag] [http://uglier.servemp3.com/resources/anal-traffic.html anal traffic] [http://coral.servemp3.com/lloyd-alexander.htm lloyd alexander born] [http://allies.servemp3.com/resources/disney-porno.html disney porno] [http://uglier.servemp3.com/resources/michigan-department.html michigan department of natural resources] [http://along.servemp3.com/view/cost-of-living.htm cost of living comparisons] [http://wails.servemp3.com/types-of-designers.html types of designers] [http://grise.servemp3.com/small/chondroitin-sulfate.htm chondroitin sulfate] [http://grise.servemp3.com/small/rottweiler.htm rottweiler] [http://along.servemp3.com/view/stp.htm stp] [http://cease.servemp3.com/buy-provigil-online.html buy provigil online] [http://uglier.servemp3.com/resources/free-telus-ringtones.html free telus ringtones] [http://coral.servemp3.com/cum-hentai.htm cum hentai] [http://coral.servemp3.com/miriam.htm miriam] [http://ousel.servemp3.com/orange-county-ca.html orange county ca real esate] [http://estate.servemp3.com/html/sporty-spice.html sporty spice] [http://beard.servemp3.com/data/little-girl-pics.html little girl pics] [http://wails.servemp3.com/tuyen.html tuyen] [http://grise.servemp3.com/small/fuck-of-the-month.htm fuck of the month] [http://coral.servemp3.com/online-image-mapping.htm online image mapping] [http://beard.servemp3.com/data/canberra-real.html canberra real estate] [http://beard.servemp3.com/data/kerri.html kerri] [http://estate.servemp3.com/html/onboys.html onboys] [http://uglier.servemp3.com/resources/shed.html shed] [http://grise.servemp3.com/small/plant-cell-lessons.htm plant cell lessons] [http://beard.servemp3.com/data/beautiful-plumpers.html beautiful plumpers] [http://sheets.servemp3.com/articles/male-to-female-hormones.html male to female hormones] [http://cease.servemp3.com/alprazolam-xanax.html alprazolam xanax] [http://grise.servemp3.com/small/used-air-conditioning.htm used air conditioning equipment] [http://uglier.servemp3.com/resources/japan-grill.html japan grill] [http://beard.servemp3.com/data/xl-girls.html xl girls] [http://falter.servemp3.com/ass-reaming.html ass reaming] [http://falter.servemp3.com/ro-download.html ro download] [http://allies.servemp3.com/resources/www-budget-rental.html www budget rental cars] [http://cease.servemp3.com/oiled-pussy.html oiled pussy] [http://beard.servemp3.com/data/type.html type] [http://ousel.servemp3.com/beastiality-cum.html beastiality cum] [http://sheets.servemp3.com/articles/spirit-of-the.html spirit of the enlightenment] [http://coral.servemp3.com/online-sex-video.htm online sex video] [http://allies.servemp3.com/resources/hollister-clothing.html hollister clothing] [http://estate.servemp3.com/html/hillary-duff-naked.html hillary duff naked] [http://grise.servemp3.com/small/travis-county.htm travis county] [http://grise.servemp3.com/small/eatting-pussy.htm eatting pussy] [http://wails.servemp3.com/sexy-kiss.html sexy kiss] [http://uglier.servemp3.com/resources/latina-facial.html latina facial] [http://beard.servemp3.com/data/psp-downloads.html psp downloads] [http://ousel.servemp3.com/rebirthing.html rebirthing] [http://coral.servemp3.com/online-medical-billing.htm online medical billing training programs] [http://ousel.servemp3.com/kia-sorento-accessory.html kia sorento accessory] [http://sheets.servemp3.com/articles/naked-trish-stratus.html naked trish stratus] [http://estate.servemp3.com/html/custom-furniture.html custom furniture] [http://falter.servemp3.com/linkin-park.html linkin park wallpaper] [http://sheets.servemp3.com/articles/telephone-numbers.html telephone numbers] [http://cease.servemp3.com/lesbian-twister.html lesbian twister] [http://coral.servemp3.com/jet-pumps.htm jet pumps] [http://coral.servemp3.com/dreamqueens.htm dreamqueens] [http://cease.servemp3.com/costa-rica-tours.html costa rica tours] [http://cease.servemp3.com/import-car-canada.html import car canada us] [http://coral.servemp3.com/art-deviant-pgirls.htm art deviant pgirls] [http://grise.servemp3.com/small/the-guitar-man-bread.htm the guitar man bread] [http://estate.servemp3.com/html/gay-child-porn.html gay child porn] [http://beard.servemp3.com/data/car-dirt-modified.html car dirt modified race sale] [http://sheets.servemp3.com/articles/male-dog-knot.html male dog knot] [http://estate.servemp3.com/html/spanish-fly.html spanish fly] [http://coral.servemp3.com/couples-fucking.htm couples fucking] [http://along.servemp3.com/view/cash-strapped-teens.htm cash strapped teens] [http://uglier.servemp3.com/resources/naturist-pageant.html naturist pageant] [http://falter.servemp3.com/homo.html homo] [http://estate.servemp3.com/html/christening-gowns.html christening gowns] [http://wails.servemp3.com/teen-couples-sex.html teen couples sex videos] [http://sheets.servemp3.com/articles/lets-get-to.html lets get to the point lets roll]
| |
| [[Category:Tutorials]][[Category:Programming]] | | [[Category:Tutorials]][[Category:Programming]] |
| ''Based on tutorial found [http://www.hl2world.com/wiki/index.php/Toggle_RPG_Laser here].'' | | ''Based on tutorial found [http://www.hl2world.com/wiki/index.php/Toggle_RPG_Laser here].'' |
Revision as of 14:06, 30 November 2007
Based on tutorial found here.
Basically what we're going to be doing is allowing a player to switch the RPG's guiding laser on and off using the weapon's secondary fire. Along with this, we will allow a player who has fired a dumb (non-guided) rocket that hasn't yet exploded to change weapons.
Files affected:
In CWeaponRPG::ItemPostFrame() (about line 1539), add the following code:
if ( pPlayer->m_afButtonPressed & IN_ATTACK2 )
{
ToggleGuiding();
}
at the end of the method, after:
if ( pPlayer->GetAmmoCount(m_iPrimaryAmmoType) <= 0 && m_hMissile == NULL )
{
StopGuiding();
}
This says, in effect, "If the player hits the secondary attack, toggle rocket guidance on or off."
Then in CWeaponRPG::SuppressGuiding() (about line 1497), find the following code:
if ( m_hLaserDot == NULL )
{
StartGuiding();
//STILL!?
if ( m_hLaserDot == NULL )
return;
}
and comment "StartGuiding();" out, so that it looks like this:
if ( m_hLaserDot == NULL )
{
//StartGuiding();
//STILL!?
if ( m_hLaserDot == NULL )
return;
}
This stops the code from automatically starting up rocket guidance again.
That's it for the guidance toggling code. Now to allow the player to lower the RPG after firing a dumb rocket but before it explodes.
In CWeaponRPG::Lower() (about line 1528), find the following code:
if ( m_hMissile != NULL )
return false;
and change it to read:
if ( m_hMissile != NULL && IsGuiding() )
return false;
This prevents the code from automatically telling us that we can't lower the RPG if we're not guiding. You will then need to make the same change in CWeaponRPG::CanHolster() (about line 1641).
Then in CWeaponRPG::Reload() (about line 1827), add this code:
if ( pOwner->GetActiveWeapon() != this )
return false;
after:
if ( pOwner->GetAmmoCount(m_iPrimaryAmmoType) <= 0 )
return false;
If we changed weapons after firing, this will prevent the RPG from getting kicked back up to us for a reload after the dumb rocket explodes.
And that's it! You're done.