Adding new weapons to a map

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
Rawing
Posts: 107
Joined: Tue Oct 23, 2007 1:40 pm

Adding new weapons to a map

Post by Rawing »

How can i add new weapon spawns(weapons programmed by me :sly: ) in a map?
[color=#FF0000]/callvote kick all_enemies[/color]
o'dium
Posts: 11712
Joined: Sun Mar 25, 2001 8:00 am

Re: Adding new weapons to a map

Post 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.
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Re: Adding new weapons to a map

Post 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.
Rawing
Posts: 107
Joined: Tue Oct 23, 2007 1:40 pm

Re: Adding new weapons to a map

Post 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 :)
[color=#FF0000]/callvote kick all_enemies[/color]
Post Reply