Site Content
   Our Chatroom
   Hosting Details
   Mailbag
   Advertise
   1.27 Ready Mods
   Benchmarks
   Technology
   Q3 Strategy
   Mod Reviews
   Features
   Columns
   Poll Results
   Screenshots
Game Media
   Demo Archive
   Models Index
   Skins Index
   Maps Index
   Downloads
Game Info
   Sys Requirements
   Characters
Eternal Arena
Q3A Console
   Commands
   Variables
   Tweaking
Clan Community
   Clan Index
   Clan News
   Clan Admin
   Clan Forum
   Clan Hosting
Coding Tutorials
   Coding Main
   Weapon Coding
   Item Coding
   General Coding
   Menu Coding
   Advanced Coding
Staff
    Corven
site manager
Com. Keen
forum moderator
Zerpire
clans rep.
Nukleuz
skins reviews
Mercenary
skins reviews
ResidentScum
news / maps reviews
F4nt0m45
news / mod reviews
Wanted
news reporters
Wanted
column writers
MGON Channel

   PC
   Action
   Roleplay
   Simulation
   Console
   Strategy
   Racing


      Coding Tutorials
Monday, May 14  

Coding Tutorials - Weapon Coding

Code to be Deleted or Commented out
Code to be Added or Changed

Weapon Damage
Lets try incresing or decreases the damage each weapon does.

g_weapon.c

This is where you will find how to alter the damage for the gauntlet, machinegun, railgun and the shotgun, because they set the damagere in here, and the other weapons fire various types of missiles so we'll get to them next.

Under each weapon just look for DAMAGE = xxx where the xxx will be a number which determines the amount of damage done, the lower the xxx the less damage will be done, I've listed them below respectively if you want to search for each:

Gauntlet = damage = 50 * s_quadFactor
Machinegun = MACHINEGUN_DAMAGE
Railgun = damage = 100 * s_quadFactor
Shotgun = DEFAULT_SHOTGUN_DAMAGE

g_missile.c
The other weapons fire various missiles so the damage amount is set in their missile function. Look for the following lines:

bolt->damage = 100;
bolt->splashDamage = 100;

Advertisement
Web Search
Help
Power Search
Download free search tool
Poll
Now what do you think to Team Arena?







id .plans
  supplied by Webdog
Forums
   General Forum
   Clans Forum
   Mods & Editing
   EA Forum
Hosted Sites
Clans
   Knights of the Quad
Modifications
   NeodymiumX
Mapping
   Fusion
   Pete's Place
   Pur3 Q3
   Gef's Maps
Misc.
   g-Zone
   Console
   QTCentral
Affiliates
   Challenge-Us
   The BackBurner
   Mplayer EU League
   Weapons of Fury
   Battle of the Sexes
   Western Q3
Buttons
Link to us

Don't forget to
Rate our Site






 Home          Top

The Gamers' Choice