how can you add objects to defualt map
Moderator: Moderators
-
stuffmess2001
- Private
- Posts: 6
- Joined: Thu Jun 26, 2003 8:04 pm
how can you add objects to defualt map
i want to add like a bucket to a regular map or anything like a bucket so i can learn from it.....can some one help me
-
stuffmess2001
- Private
- Posts: 6
- Joined: Thu Jun 26, 2003 8:04 pm
- IvanTheTerrible
- Sergeant
- Posts: 55
- Joined: Thu Jun 26, 2003 7:35 pm
- Location: Upland, CA
Adding static objects
1. Download a copy of the Pakscape program--you can find it on pretty much any MOHAA website
1a. Go into the game and stand on the spot where you want to add the object. Bring up the console by typing ~ and type coord and press enter. You will get a set of coordinates in parenthesis...write these down
2. Use the pakscape program to create a new pk3 file and call it whatever you like. Create a folder within it called maps and then a folder within that folder called DM
3. Now use notepad to create a script file and place the following lines into it:
main:
level waitTill prespawn
//*** Precache Dm Stuff
exec global/DMprecache.scr
level.script = maps/dm/mohdm1.scr
exec global/ambient.scr mohdm1
level waittill spawn
//Add Flourbag Stack
local.fix1 = spawn script_model
local.fix1 model "static/flourbag-stack.tik"
local.fix1.origin = ( -205.00 192.00 50.00 )
local.fix1.angles = ( 0 75 0 )
local.fix1.scale = 2.50
local.fix1 solid
end
4. Now save this text as mohdm1.scr and copy it into the Dm folder that you created in pakscape
5. Now save the pakscape project you've been working on as whatever name you want with the .pk3 extension
6. Place your newly created pk3 file into the main folder in for MOHAA and you're set
The fix1 part of the script can be anything you like. The model line contain the item you want to add--in this example a stack of flour bags. Replace the sample coordinates I have above with the ones you wrote down...good luck.
1a. Go into the game and stand on the spot where you want to add the object. Bring up the console by typing ~ and type coord and press enter. You will get a set of coordinates in parenthesis...write these down
2. Use the pakscape program to create a new pk3 file and call it whatever you like. Create a folder within it called maps and then a folder within that folder called DM
3. Now use notepad to create a script file and place the following lines into it:
main:
level waitTill prespawn
//*** Precache Dm Stuff
exec global/DMprecache.scr
level.script = maps/dm/mohdm1.scr
exec global/ambient.scr mohdm1
level waittill spawn
//Add Flourbag Stack
local.fix1 = spawn script_model
local.fix1 model "static/flourbag-stack.tik"
local.fix1.origin = ( -205.00 192.00 50.00 )
local.fix1.angles = ( 0 75 0 )
local.fix1.scale = 2.50
local.fix1 solid
end
4. Now save this text as mohdm1.scr and copy it into the Dm folder that you created in pakscape
5. Now save the pakscape project you've been working on as whatever name you want with the .pk3 extension
6. Place your newly created pk3 file into the main folder in for MOHAA and you're set
The fix1 part of the script can be anything you like. The model line contain the item you want to add--in this example a stack of flour bags. Replace the sample coordinates I have above with the ones you wrote down...good luck.
-
stuffmess2001
- Private
- Posts: 6
- Joined: Thu Jun 26, 2003 8:04 pm