Page 1 of 1

Adding new weapons to a map

Posted: Wed May 28, 2008 11:24 am
by Rawing
How can i add new weapon spawns(weapons programmed by me :sly: ) in a map?

Re: Adding new weapons to a map

Posted: Wed May 28, 2008 11:38 am
by o'dium
A simple and easy way without messing with the editor is to place a temp weapon there such as a rocket launcher, and then open the .map file with word, find the entity, and change the name.

Re: Adding new weapons to a map

Posted: Wed May 28, 2008 4:44 pm
by obsidian
Procedure is a little different depending on which version of GtkRadiant you are using, both involving creating a new entities definition file for your mod to include the custom weapon.

GtkRadiant 1.4.0
  1. Open the existing entities.def file in [Q3install]\baseq3\scripts\
  2. Look for the appropriate sections under WEAPON_* ENTITIES and if applicable, AMMO_* ENTITIES and copy one of the entities to clipboard to use as a guide.
  3. Open a new text document in notepad and paste in the copied sections.
  4. Edit the sections as appropriate to your new weapon. Most of it is self-explanatory. The values in brackets on the first line represent respectively: bounding box colour, bounding box co-ordinate 1, bounding box co-ordinate 2, spawnflags (usually just SUSPENDED).
  5. Save your new text document to [Q3install]\[mymod]\scripts\entities-[mymod].def
  6. Restart GtkRadiant, you should be able to drop in you weapons as normal.
GtkRadiant 1.5.0
  1. Go to Program Files\GtkRadiant 1.5.0\q3.game and create a new folder for your mod.
  2. Open the existing entities.ent file in q3.game\baseq3\
  3. Look for the appropriate sections under WEAPON_* ENTITIES and if applicable, AMMO_* ENTITIES and copy one of the entities to clipboard to use as a guide.
  4. Open a new text document in notepad and paste in the copied sections.
  5. Edit the sections as appropriate to your new weapon. Instructions are similar to above for 1.4.0, but observe the differences in format.
  6. Save your new text document to q3.game\[mymod]\entities-[mymod].ent
  7. Restart GtkRadiant, you should be able to drop in you weapons as normal.

Re: Adding new weapons to a map

Posted: Sat May 31, 2008 2:30 am
by Rawing
I don't want to change the names of the weapons coz I don't know whether multiplayer maps will work....
thx for answering - but I don't have the time to try it know :cry:
I really thought it was going to be difficult, that's y I asked :)