Spawning objects in stock maps help

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
LiquorKraZy
Captain
Posts: 267
Joined: Tue Aug 10, 2004 5:38 am
Location: CA
Contact:

Spawning objects in stock maps help

Post by LiquorKraZy »

Ok...i took the original stock map .scr and added the objects i wanted to spawn..then i saved...opened pakscape...createda folder called MAPS..then inside that 2 folders called DM and OBJ..then i added the original map.scr to the appropriate folder....and saved as zzzzzzz??????.pk3...then put into mainta..then started game and went into START OWN GAME to see if they worked....and i dont see anything!! is this the right process? and also...where do i put the objects under? LEVEL WAITTILL SPAWN or LEVEL WAITTILL PRESPAWN...i tried to use a object that i saw on MOHAA EDITTING website http://www.mohaa-mods.web1000.com/spawn.html....and i couldnt find the object....

please help!!

thx
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

object

Post by tltrude »

You don't need a pk3 just to test it. If you place the modified script (.scr file) in mohaa/main/maps/dm, or obj, it will automattically override the original multiplayer script that is in pak5.
Tom Trude,

Image
LiquorKraZy
Captain
Posts: 267
Joined: Tue Aug 10, 2004 5:38 am
Location: CA
Contact:

Post by LiquorKraZy »

ok...i put my modified map.scr file into main/maps/dm or obj...then went into the game to the map..hit editscript....hen open it..but it still comes up as a the stock map.scr......it doesnt show any of my changes?
Cobra {sfx}
Site Admin
Posts: 194
Joined: Tue Mar 23, 2004 10:25 pm
Contact:

Post by Cobra {sfx} »

main:
level waittill prespawn

thread bike

level waittill spawn

end


bike:
local.bmwbike_d = spawn models/vehicles/bmwbike_d.tik
local.bmwbike_d.origin = ( 2959.25 1777.91 -511.88 ) //edit these for the map your putting it in
local.bmwbike_d solid
local.bmwbike_d immune bullet
local.bmwbike_d immune fast_bullet
local.bmwbike_d immune bash
local.bmwbike_d immune mg
local.bmwbike_d immune explosion
end

You said mainta directory - thats either Spearhead or Breakthrough (cant remember which) im not sure if either use different code to Allied Assault or if that model is in there but its worth u checking to see if it has that model.
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

I belive that in spearhead the file have to be in a pak but for mohaa they can be outside of a pak . In mohaa the ones on the harddrive overwrite the ones in the paks but I think it is different for spearhead .
Image
Grassy
First Lieutenant
Posts: 221
Joined: Sun Aug 22, 2004 11:36 am

Post by Grassy »

It dosn't matter if it's AA or SH or BT, they all can be done the same way. Just make your modified scr and place it in the same directory structure that you found the original one in. for eg maps/dm/dm_brest.scr.
After testing add it the a pk3 file with those same dir's and name the pk3 User_mapMods.pk3 or something descriptive. Put it in main/ for AA, mainta/ for SH and maintt/ for BT...
Grassy
Oh and listen to Cobra, he knows the score :D
Oops, Bdbodger beat me to it, he is correct. Must be in a pk3 for Spearhead and Breakthrough...
LiquorKraZy
Captain
Posts: 267
Joined: Tue Aug 10, 2004 5:38 am
Location: CA
Contact:

Post by LiquorKraZy »

Ok...thx for the help guys!!

I have notcied that if i add an item/items then create a pk3 file for it...and then put that pk3 into mainta that itll show up when i hit editscript...now im assuming that i either have to make a pk3 file everytime i add an object..or once i create the first pk3 then i can go into editscript and make changes then save...then restart..and tsee the new items ive added!!

Thx again for the help...i love learnin' this srciptin' stuff and once thats done maybe i can finally create my own map...woo hoo!! :D
Post Reply