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


View Profile
« on: September 03, 2008, 11:05:15 PM »

In this tutorial i will explain and show how to modify any of the weapons damage
scroll to line 1142 of g_weapons.c you should see this code

else { // multiplayer damage
switch (weapon) {
case WP_LUGER:
case WP_SILENCER:
case WP_COLT: return 18;
case WP_AKIMBO: return 18; //----(SA) added
case WP_VENOM_FULL: return 10;
case WP_VENOM: return 20;
case WP_MP40: return 40;
case WP_THOMPSON: return 40;
case WP_STEN: return 14;
case WP_FG42SCOPE:
case WP_FG42: return 75;
case WP_BAR:
case WP_BAR2: return 12; //----(SA) added
case WP_MAUSER: return 140; // was 25 JPW
case WP_GARAND: return 75; // was 25 JPW
case WP_SNIPERRIFLE: return 130;
case WP_SNOOPERSCOPE: return 75;
case WP_NONE: return 0;
case WP_KNIFE:
case WP_KNIFE2: return 10;
case WP_SMOKE_GRENADE: return 140; // just enough to kill somebody standing on it
case WP_GRENADE_LAUNCHER: return 250;
case WP_GRENADE_PINEAPPLE: return 250;
case WP_DYNAMITE:
case WP_DYNAMITE2: return 600;
case WP_ROCKET_LAUNCHER:
case WP_PANZERFAUST: return 60;
case WP_MORTAR: return 250;
case WP_FLAMETHROWER: return 1;
case WP_TESLA:
case WP_SPEARGUN:
case WP_SPEARGUN_CO2:
case WP_CROSS:
case WP_GAUNTLET:
case WP_SNIPER:
default: return 1;
}
}
}
« Last Edit: September 03, 2008, 11:28:03 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.