Changing damage on diffirent weapons?

Discuss programming in the QuakeC language.
Post Reply
Karall
Posts: 128
Joined: Thu Jul 15, 2010 5:23 pm

Changing damage on diffirent weapons?

Post by Karall »

Alright. So what i want to do is make the damage higher on my weapons but i dont know how the damage system works. Is it like a bullet has a set amount of damage that it does or do diffirent weapons do diffirent amounts of damage.
Spirit
Posts: 1068
Joined: Sat Nov 20, 2004 9:00 pm
Contact:

Post by Spirit »

Just check out some http://inside3d.com/tutorials.php to get into it. It depends on the weapon and ranges from being trivial to being a bit more complicated.
Improve Quaddicted, send me a pull request: https://github.com/Quaddicted/quaddicted-data
Karall
Posts: 128
Joined: Thu Jul 15, 2010 5:23 pm

Post by Karall »

Ile borrow my own thread as always. It says in the console when i bring up the weapon that its not precached. How would i precach it?
Spirit
Posts: 1068
Joined: Sat Nov 20, 2004 9:00 pm
Contact:

Post by Spirit »

What is not precached.

Check the source code for "precache" and see how it is done.
Improve Quaddicted, send me a pull request: https://github.com/Quaddicted/quaddicted-data
EMR
Posts: 13
Joined: Mon Oct 11, 2010 8:08 pm

The damage system is wierd

Post by EMR »

Look around in weapons.qc-the logic isn't too hard to follow. The amount of damage a pellet for the shotgun and supershotgun is set in the same place, because they use the same 'fire bullets' function. But you can make your own version of that function that does a different amount of damage, or add a 'damage' parameter.
Post Reply