the Rainbow Networks
+++eXy FFA
Map: jaxtourney2
Players: 2 / 24
The golden pot › DEV › Maps, Models and Mods › Digging around in the code.
Digging around in the code.
There are worlds waiting to be explored and objects to be made. Enjoy.
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexMaps, Models and Mods
View previous topic :: View next topic  
Author Message
Forum Addict
Forum Addict

Joined: Aug 25, 2007
Posts: 466
Location: england

PostPosted: Wed Sep 23, 2009 1:14 pm    Post subject: Digging around in the code. Reply with quote

bg_misc.c is quite an interesting bit of quake3 code. It's full of stuff like this...

/*QUAKED ammo_grenades (.3 .3 1) (-16 -16 -16) (16 16 16) suspended
        { "models/powerups/ammo/grenadeam.md3", 
/* icon */		"icons/icona_grenade",
/* pickup */	"Grenades",
/* precache */ "",
/* sounds */ ""
- ammo_grenades is what appears in the .map file and presumably the bsp, so probably not a good idea to mess around with that.
- sound/misc/am_pkup.wav looks like it's the sounds called when the ammo is picked up.
- models/powerups/ammo/grenadeam.md3 must be the model used to for the pickup in the game. this is quite useful if you are trying to find a model for a particular item. instead of digging around the pk3s trying to find the right model you can do a quick search of bg_misc.c and find out the exact model very quickly.
- icons/icona_grenade must be the 2d icon associated with the pickup.

/* pickup */ "Grenades",
This is interesting. I'm guessing that the 5 is the number of grenades you get when you get the ammo_grenade pickup. If you wanted to mod the game so that the pickups had more/less grenades then this is where you'd do it.
Back to top
View user's profile Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum Index -> Maps, Models and Mods All times are GMT + 1 Hour
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

Welcome Anonymous

Latest: kontol
New Today: 0
New Yesterday: 0
Overall: 355

People Online:
Members: 0
Visitors: 34
Total: 34
Who Is Where:
01: My Account
02: The golden pot
03: The golden pot
04: The golden pot
05: The golden pot
06: Home
07: Maps
08: Home
09: The golden pot
10: The golden pot
11: The golden pot
12: The golden pot
13: The golden pot
14: The golden pot
15: The golden pot
16: The golden pot
17: The golden pot
18: The golden pot
19: My Account
20: The golden pot
21: My Account
22: The golden pot
23: Maps
24: The golden pot
25: Home
26: The golden pot
27: The golden pot
28: The golden pot
29: Rainbow Media
30: The golden pot
31: The golden pot
32: The golden pot
33: The golden pot
34: The golden pot

Staff Online:

No staff members are online!

The Rainbow Networks website is hosted by JockeTF and Soder on

The Rainbow Networks
Interactive software released under GNU GPL, Code Credits, Privacy Policy
Azul theme and related images designed by Jamin