Forum

Changing damage on diffirent weapons?

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Changing damage on diffirent weapons?

Postby Karall » Sat Dec 11, 2010 12:37 pm

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.
Karall
 
Posts: 128
Joined: Thu Jul 15, 2010 5:23 pm

Postby Spirit » Sat Dec 11, 2010 1:10 pm

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/SpiritQuaddicted/Quaddicted-reviews
Spirit
 
Posts: 1031
Joined: Sat Nov 20, 2004 9:00 pm

Postby Karall » Sat Dec 11, 2010 2:08 pm

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?
Karall
 
Posts: 128
Joined: Thu Jul 15, 2010 5:23 pm

Postby Spirit » Sat Dec 11, 2010 5:54 pm

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/SpiritQuaddicted/Quaddicted-reviews
Spirit
 
Posts: 1031
Joined: Sat Nov 20, 2004 9:00 pm

The damage system is wierd

Postby EMR » Tue Dec 14, 2010 7:47 pm

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.
EMR
 
Posts: 13
Joined: Mon Oct 11, 2010 8:08 pm


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest