Search found 24 matches
- Fri May 06, 2011 7:40 pm
- Forum: Programming Discussion
- Topic: Changing Ammo Values - Simplfied
- Replies: 31
- Views: 15764
Re: Changing Ammo Values - Simplfied
Also, now figured out the maximum armor as well. Now to only figure out how to mess around with other powerups, removing armor/hp degeneration, and modifying the armor/hp damage ratio.
- Fri May 06, 2011 7:32 pm
- Forum: Programming Discussion
- Topic: Changing Ammo Values - Simplfied
- Replies: 31
- Views: 15764
Re: Changing Ammo Values - Simplfied
K, finally fixed the problem with the health pickups and maximum health. Apparently, there was 3 different spots in 3 different files where you had to change numbers around for it to work. I had been trying to do it by only changing 1 or 2 files out of 3. Now it properly increases to up to 500 hp, h...
- Fri May 06, 2011 7:23 pm
- Forum: Programming Discussion
- Topic: Changing Ammo Values - Simplfied
- Replies: 31
- Views: 15764
Re: Changing Ammo Values - Simplfied
Also, changed maximum health, I think, and the health pickups are still giving me problems.
- Fri May 06, 2011 7:14 pm
- Forum: Programming Discussion
- Topic: Changing Ammo Values - Simplfied
- Replies: 31
- Views: 15764
Re: Changing Ammo Values - Simplfied
K thanks. Found where it degenerates HP and armor. However, was wondering how I would remove it so that any amount gained over 100 hp/armor would remain that way until you took damage? If I simply delete the code, I get an error message.
- Fri May 06, 2011 6:21 am
- Forum: Programming Discussion
- Topic: Changing Ammo Values - Simplfied
- Replies: 31
- Views: 15764
Re: Changing Ammo Values - Simplfied
Ah, but the thing is, if I change the amount given by the '5 hp bonus health' or the '100 hp bonus megahealth', it doesn't perform the 'bonus' part. What I mean is, normally when you pick them up, they can increase your HP beyond the maximum of 100 to 200. If I change the values, they still heal hea...
- Thu May 05, 2011 3:05 am
- Forum: Programming Discussion
- Topic: Changing Ammo Values - Simplfied
- Replies: 31
- Views: 15764
Re: Changing Ammo Values - Simplfied
Found weapon fire speeds under bg_pmove.c
- Wed May 04, 2011 8:18 pm
- Forum: Programming Discussion
- Topic: Changing Ammo Values - Simplfied
- Replies: 31
- Views: 15764
Re: Changing Ammo Values - Simplfied
case IT_AMMO: if ( ps->ammo[ item->giTag ] >= 200 ) { return qfalse; // can't hold any more } return qtrue; By editting this code, the ammo max values work now. Also, found the other weapon damages under g_missile.c including splash radius + splash damage. Still haven't figured out how to change max...
- Wed May 04, 2011 6:34 am
- Forum: Programming Discussion
- Topic: Changing Ammo Values - Simplfied
- Replies: 31
- Views: 15764
Re: Changing Ammo Values - Simplfied
I'm a bit bombed at the moment so I'll try that later, and report back on it. How would I edit things like: 1) Powerups (ie effects) [figured out how to affect respawn and duration of powerups already] 2) Maximum, unincreased HP/Armor (ie before HP or Armor slowly decreases over time) 3) Removing th...
- Wed May 04, 2011 5:46 am
- Forum: Programming Discussion
- Topic: Changing Ammo Values - Simplfied
- Replies: 31
- Views: 15764
Re: Changing Ammo Values - Simplfied
Also, with my limited programming background, I know that with brackets you must match brackets with brackets. ent->client->ps.ammo[weapon] += count; if ( ent->client->ps.ammo[weapon] > 400 ) { ent->client->ps.ammo[weapon] = 400; } So, why is "ent->client->ps.ammo[weapon] = 400; }" bracket...
- Wed May 04, 2011 5:41 am
- Forum: Programming Discussion
- Topic: Changing Ammo Values - Simplfied
- Replies: 31
- Views: 15764
Re: Changing Ammo Values - Simplfied
Ok, tried changing the MaxAmmo value higher, didn't work. However still had the oddity where my machine gun ammo went up to 249, iff I had 199 ammo before picking up the ammo box. In the code: ent->client->ps.ammo[weapon] What does this string mean? Is it possible that "ps.ammo [weapon]" i...
- Wed May 04, 2011 5:35 am
- Forum: Programming Discussion
- Topic: Changing Ammo Values - Simplfied
- Replies: 31
- Views: 15764
Re: Changing Ammo Values - Simplfied
K this is strange. Altho I cannot manually get the ammo to a new maximum, somehow with the code I managed a partial victory. I got 231 ammo for the machine gun. However I couldn't pick up more ammo packs until it was 199 or less. And if I had 199, it would add 50 bullets.
- Wed May 04, 2011 5:26 am
- Forum: Programming Discussion
- Topic: Changing Ammo Values - Simplfied
- Replies: 31
- Views: 15764
Re: Changing Ammo Values - Simplfied
void Add_Ammo (gentity_t *ent, int weapon, int count) { int maxAmmo = 200; if ( weapon == WP_MACHINEGUN ) maxAmmo = 500; else if ( weapon == WP_SHOTGUN ) maxAmmo = 300; else if ( weapon == WP_ROCKET_LAUNCHER ) maxAmmo = 25; ent->client->ps.ammo[weapon] += count; if ( ent->client->ps.ammo[weapon] > m...
- Wed May 04, 2011 5:04 am
- Forum: Programming Discussion
- Topic: Changing Ammo Values - Simplfied
- Replies: 31
- Views: 15764
Re: Changing Ammo Values - Simplfied
Also the files created by running the .bat (batch) files all have the suffix .asm, not .qvm .
- Wed May 04, 2011 4:58 am
- Forum: Programming Discussion
- Topic: Changing Ammo Values - Simplfied
- Replies: 31
- Views: 15764
Re: Changing Ammo Values - Simplfied
K, I tried it with your source code provided in the link this time. Build (Release) solution caused 0 errors this time and about 50% less warnings. dll files work fine. When trying to make the qvm files (im assuming the q stands for quake) there is no output sent to my Quake 3 Folder. There is some ...
- Wed May 04, 2011 1:58 am
- Forum: Programming Discussion
- Topic: Changing Ammo Values - Simplfied
- Replies: 31
- Views: 15764
Re: Changing Ammo Values - Simplfied
Nevermind, I see the problem there now too. I was using a different version of the source than you were using in the tutorial.
- Wed May 04, 2011 1:57 am
- Forum: Programming Discussion
- Topic: Changing Ammo Values - Simplfied
- Replies: 31
- Views: 15764
Re: Changing Ammo Values - Simplfied
Ok, I noticed what I did wrong in the first, place, and I'm on the second page, but I cannot find the /bin folder. Am I supposed to run the .bat files first, or is it somewhere else?
- Wed May 04, 2011 12:11 am
- Forum: Programming Discussion
- Topic: Changing Ammo Values - Simplfied
- Replies: 31
- Views: 15764
Re: Changing Ammo Values - Simplfied
Course, itd proly be simplest if someone else just made the thing for me and posted a download link or something. Then again, I dunno.
- Wed May 04, 2011 12:10 am
- Forum: Programming Discussion
- Topic: Changing Ammo Values - Simplfied
- Replies: 31
- Views: 15764
Re: Changing Ammo Values - Simplfied
Yes just the ammo count stuff. Not interested in the rest at the moment.
- Tue May 03, 2011 11:08 pm
- Forum: Programming Discussion
- Topic: Changing Ammo Values - Simplfied
- Replies: 31
- Views: 15764
Re: Changing Ammo Values - Simplfied
Actually found the errors in the Build Log: Compiling... win_wndproc.c c:\users\jason\desktop\patch\quake3-1.32b\code\win32\win_local.h(36) : fatal error C1083: Cannot open include file: 'dinput.h': No such file or directory win_syscon.c c:\users\jason\desktop\patch\quake3-1.32b\code\win32\win_local...
- Tue May 03, 2011 11:06 pm
- Forum: Programming Discussion
- Topic: Changing Ammo Values - Simplfied
- Replies: 31
- Views: 15764
Re: Changing Ammo Values - Simplfied
K, so I followed your instructions on your site, got 7 errors (dunno why) when build solution (w/ Release), and I do not know how to add the commandline parameter, or the commandline parameter is not working.
- Tue May 03, 2011 10:07 pm
- Forum: Programming Discussion
- Topic: Changing Ammo Values - Simplfied
- Replies: 31
- Views: 15764
Re: Changing Ammo Values - Simplfied
K, so I got it (source files) loaded up in Visual C++ Studio, and editted the ammo values. Now, how do I turn it into a playable mod?
- Tue May 03, 2011 5:34 pm
- Forum: Programming Discussion
- Topic: Changing Ammo Values - Simplfied
- Replies: 31
- Views: 15764
Re: Changing Ammo Values - Simplfied
So, in that case I'd change the interger "int MAXAMMO = 400" to make all weapons have a maximum of 400 ammo?
- Tue May 03, 2011 5:13 pm
- Forum: Programming Discussion
- Topic: Changing Ammo Values - Simplfied
- Replies: 31
- Views: 15764
Re: Changing Ammo Values - Simplfied
So in the example you gave, only those three weapons would have changed ammo values? All the other weapon ammo values would remain the same?
- Tue May 03, 2011 5:33 am
- Forum: Programming Discussion
- Topic: Changing Ammo Values - Simplfied
- Replies: 31
- Views: 15764
Changing Ammo Values - Simplfied
Hi, I've been playing Q3 for close to a decade now. I've always wanted to change the Maximum Ammo, for certain guns, namely the machine gun. Is there a simple way of changing the Maximum Ammo for weapons, ie an available file for download, or a quick simple guide, for someone, like myself who is not...