how to set/add weapon in a map

how to set/add weapon in a map

Postby kzman » 17 Mar 2010, 16:46

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
kzman
 
Posts: 1
Joined: 17 Mar 2010, 16:40

Re: how to set/add weapon in a map

Postby TheAncientGoat » 18 Mar 2010, 07:21

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
User avatar
TheAncientGoat
Community Moderator
 
Posts: 518
Joined: 27 Dec 2009, 19:06

Re: how to set/add weapon in a map

Postby kripken » 18 Mar 2010, 12:19

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.
User avatar
kripken
Syntensity Moderator
 
Posts: 52
Joined: 12 Jan 2010, 13:45

Who is online

Users browsing this forum: No registered users and 1 guest