Bug #49

Adjustment of weapon damage such that it's almost similar to Kingpin

Added by 0xA5EA 10 months ago. Updated 9 months ago.

Status:In Progress Start date:07/15/2011
Priority:Immediate Due date:
Assignee:KRYPTYK % Done:

40%

Category:Game-dll coding Spent time: 3.00 hours
Target version:-

Description

Here are the related source code files and line numbers:

common damage flags:
code/g_local.h
starts on line 579
// damage flags
#define DAMAGE_RADIUS 0x00000001 // damage was indirect
#define DAMAGE_NO_ARMOR 0x00000002 // armour does not protect from this damage
#define DAMAGE_NO_KNOCKBACK 0x00000004 // do not affect velocity, just view angles
#define DAMAGE_NO_PROTECTION 0x00000008 // armor, shields, invulnerability, and godmode have no effect
//#ifdef MISSIONPACK
#define DAMAGE_NO_TEAM_PROTECTION 0x00000010 // armor, shields, invulnerability, and godmode have no effect
//#endif

Pistol:
code/g_weapon.c
line 162: #define PISTOL_DAMAGE 15

Shotgun:
game/g_weapons.c
line 287: #define DEFAULT_SHOTGUN_DAMAGE 5

Machinegun:
game/g_weapons.c
line 165 #define MACHINEGUN_DAMAGE 7
#define MACHINEGUN_TEAM_DAMAGE 5 // wimpier MG in teamplay

Hmg:
game/g_weapons.c
line 167 #define HMG_DAMAGE 44

Rocket Launcher:
code/g_missle.c
line 723
bolt->damage = 110 + (int)(random() * 10.0); // 0xA5EA, kp-damage, orignal 100;
bolt->splashDamage = 80; //120; // 0xA5EA kp-value, orginal 100
bolt->splashRadius = 150; // 0xA5EA kp-value 180

History

Updated by KRYPTYK 10 months ago

g_weapon.c changes:

#define MACHINEGUN_DAMAGE 8 // was 7 -KRYPTYK
#define MACHINEGUN_TEAM_DAMAGE 6 // wimpier MG in teamplay, was 5 -KRYPTYK
#define HMG_DAMAGE 50 // was 44 -KRYPTYK
#define HMG_SPREAD 2 // was 0 -KRYPTYK

#define DEFAULT_SHOTGUN_DAMAGE 8 // was 5 -KRYPTYK

g_missile.c changes:

bolt->damage     = 100 + (int)(random() * 20.0);            // 0xA5EA, kp-damage, orignal 100; was 110 + (int)(random() * 20.0) -KRYPTYK
bolt->splashDamage = 120;                                   // 0xA5EA kp-value, orginal 100; was 80 KRYPTYK
bolt
>splashRadius = 180; // 0xA5EA kp-value 180; was 150 -KRYPTYK

g_missle.c files.

Updated by KRYPTYK 9 months ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 40

Grenades, rockets, shotguns, machineguns damage tweaked.

Also available in: Atom PDF