Jump to content

Home

Does anyone know how to make Damage control Cvars?


TheWhiteRaider

Recommended Posts

dude,why dont you look through the code before you ask here.it is probably one of the eaisiest things to find.its in the most obvious place,it is in one of the weapons.c'sit might be bg_weapons or just weapons i dont exactly remember. anyways find the number and replace it with your cvar name plus a .integer.

example:

mod_pistoldamage.integer

also dont forget to declare the cvar in g_local.h and in g_main.c

Link to comment
Share on other sites

First I never ask if I haven't tried o.k? I just now started learning the JK2 code. I was a topc coder for the first JK. It just takes time.

 

Thanks anyways. I didn't know where to look. I never touched Quake3 coding heck I never played anything made by raven untill JK2.

 

And it is g_weapons.c where the weapon damages are located. I just need to know how to make a Cvar and were to set it up.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...