Back to the Starter Page News/Mainpage Quake 3 Tutorials Deus Ex Tutorials Quake 1 Expansion Project Newbies Guide to Modmaking Models Links FigPops.com Forums Email Monkey |
This is how to
add a Frag Multiplier to a normal DM game, completely server
side.in g_local.h around line 241 you'll find struct gclient_s
{ now scroll down a coupla of lines until you find int
invulnerabilityTime; just below that add//pigpen frag multiplier now save and open g_client.c find void ClientSpawn around line 1015 scroll down until you find client->ps.stats[STAT_WEAPONS] |= ( 1 <<
WP_GAUNTLET ); then add//pigpen frag multiplier now save and open
g_active.cfind void ClientTimerActions around line 383 scroll down until you see //
count down health when over max and add//pigpen frag multiplier before // count
down armor when over max so it will
end up looking as abovenow save and open g_combat.c find void AddScore around line 32 and where it says ent->client->ps.persistant[PERS_SCORE] +=
score; make itent->client->ps.persistant[PERS_SCORE] +=
score*ent->client->fragmult; //pig frag
mult now save and compile, tada, every 60 seconds the
player is alive he/she gets +1 to their frag multiplier, meaning a person
who stays alive for 5 minutes will get 5 frags for every 1
kill. |
Texture of the day Submit your own Texture of the Day |