Page 1 of 1

how to set/add weapon in a map

PostPosted: 17 Mar 2010, 16:46
by kzman
hi, I am some new in this game, and i'd like to know how to set some weapon, for a FPS, map, because you know the blank map, is full blank, i'd thank your help,
bye

Re: how to set/add weapon in a map

PostPosted: 18 Mar 2010, 07:21
by TheAncientGoat
The best way to do this is to copy a map that already has guns. Here is a tutorial: How to make your own razanak levels

Then, you just clear the map with the /newmap command, and voila, you have guns :)

If you want to add custom guns, look at the files in intensityengine/packages/library/1_3 and look for the guns, projectiles, firing js files, and they'll show you how to make your own gun (just copy one of the existing guns in one of those files, and paste it into your map.js file, and tweak it to your liking)

If you want more help, pop on the irc channel

Re: how to set/add weapon in a map

PostPosted: 18 Mar 2010, 12:19
by kripken
I just added some documentation for exactly this, in the source code repo. See

docs/scripting.markdown

and the files in

docs/scripting_examples/

Specifically, #1 is the basic recommended template for a map script, and #4 shows how to add some guns to #1.