News: SMF - Just Installed!
 
Welcome, Guest. Please login or register.
+  AnthraxBio
|-+  Return to Castle Wolfenstein
| |-+  Coding Tutorials
| | |-+  Enabling Firing Around a Corner
« previous next »
Pages: [1] Print
Author Topic: Enabling Firing Around a Corner  (Read 258 times)
SkreamerVirii
Administrator
Full Member
*****
Posts: 133


View Profile
« on: September 03, 2008, 11:13:01 PM »

In this Tutorial I will demonstrate how to Enable firing around a corner when you ar leaning
Go to line 2703 of bg_pmove.c
you should see this
jpw
player is leaning - no fire
if(pm->ps->leanf != 0 && pm->ps->weapon != WP_GRENADE_LAUNCHER && pm->ps->weapon != WP_GRENADE_PINEAPPLE ) {
return;
}

comment it out like so
// jpw
// player is leaning - no fire
// if(pm->ps->leanf != 0 && pm->ps->weapon != WP_GRENADE_LAUNCHER && pm->ps->weapon != WP_GRENADE_PINEAPPLE ) {
// return;
// }
compile and go shoot a weapon around the corner
it appears to look like it is still shooting from its original postion when your leaning
but you can shoot around the corners its odd needs some vector work i think

« Last Edit: September 03, 2008, 11:25:50 PM by SkreamerVirii » Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Free SMF 1.1.5 Forum Theme by Tamuril. © 2008.