How do i Put objects on map, step by step please.

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Dark_Warwolf
Lance Corporal
Posts: 22
Joined: Sun Sep 19, 2004 1:24 am
Location: La Romana

How do i Put objects on map, step by step please.

Post by Dark_Warwolf »

Uh.....Im new here so....I was wodering if you guys can tell me how to put objects on maps like southern france?

And can it be step by step? :wink:
==========DarknesDarkDark========
-----------------You Owe the Dark!----------------
strafer
Captain
Posts: 237
Joined: Sat Jan 31, 2004 11:29 pm
Location: The Motherland..
Contact:

Post by strafer »

Ok, I told you in my last post in the other thread that I already did that for someone and I gave you the link. Here it is again:

http://dynamic4.gamespy.com/~map/mohaa/ ... php?t=8824
Dark_Warwolf
Lance Corporal
Posts: 22
Joined: Sun Sep 19, 2004 1:24 am
Location: La Romana

Post by Dark_Warwolf »

Yeah sorry i didnt find the other 1!

And thx
==========DarknesDarkDark========
-----------------You Owe the Dark!----------------
Dark_Warwolf
Lance Corporal
Posts: 22
Joined: Sun Sep 19, 2004 1:24 am
Location: La Romana

Post by Dark_Warwolf »

Hey man ive done all those things but still it doesnt apear.
What i wanted to put is emitters/fire.tik on the center of the bridge.

is it like this?

// SOUTHERN FRANCE
// ARCHITECTURE: SENN
// SCRIPTING: POWZER

main:

// set scoreboard messages
setcvar "g_obj_alliedtext1" "Southern France"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""

setcvar "g_scoreboardpic" "mohdm1"

// call additional stuff for playing this map round based is needed
if(level.roundbased)
thread roundbasedthread

level waitTill prespawn

//*** Precache Dm Stuff
exec global/DMprecache.scr

level.script = maps/dm/mohdm1.scr
exec global/ambient.scr mohdm1

//exec global/ambient.scr mohdm2

//$world farplane 5000
//$world farplane_color (.333 .333 .329)

level waittill spawn

exec maps/dm/fix1.scr

local.fix1=spawn script_model

local.fix1 model "emitters/fire.tik

local.fix1.origin=(127.35 481.75 384.13)

local.fix1.angles=(14.62 1.79 0.00)

local.fix1 solid

end

//-----------------------------------------------------------------------------

roundbasedthread:

// Can specify different scoreboard messages for round based games here.

level waitTill prespawn

level waittill spawn

// set the parameters for this round based match
level.dmrespawning = 0 // 1 or 0
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = kills // set to axis, allies, kills, or draw

level waittill roundstart

end
==========DarknesDarkDark========
-----------------You Owe the Dark!----------------
strafer
Captain
Posts: 237
Joined: Sat Jan 31, 2004 11:29 pm
Location: The Motherland..
Contact:

Post by strafer »

You missed something very simple...don't worry...everyone does this. I'll highlight what you left out in blue. You forgot to close the quotes.


local.fix1=spawn script_model
local.fix1 model "models/emitters/fire.tik"
local.fix1.origin=(127.35 481.75 384.13)
local.fix1.angles=(14.62 1.79 0.00)
local.fix1 solid
Dark_Warwolf
Lance Corporal
Posts: 22
Joined: Sun Sep 19, 2004 1:24 am
Location: La Romana

Post by Dark_Warwolf »

Oh man snif...thank you very much snif :cry:
==========DarknesDarkDark========
-----------------You Owe the Dark!----------------
Dark_Warwolf
Lance Corporal
Posts: 22
Joined: Sun Sep 19, 2004 1:24 am
Location: La Romana

Post by Dark_Warwolf »

Ok now its like this and either way it doesnt work the fire doesnt appear on the bridge....look the pk3 file is in the main folder and in the pk3, is...er
maps/dm/fix1.scr/obj.
So doesnt it supposed to be like copying the fix1.scr file in the pk5 maps/dm and put it in the fix1.scr and deleting the old 1 mohhdm1?

This is it

// SOUTHERN FRANCE
// ARCHITECTURE: SENN
// SCRIPTING: POWZER

main:

// set scoreboard messages
setcvar "g_obj_alliedtext1" "Southern France"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""

setcvar "g_scoreboardpic" "mohdm1"

// call additional stuff for playing this map round based is needed
if(level.roundbased)
thread roundbasedthread

level waitTill prespawn

//*** Precache Dm Stuff
exec global/DMprecache.scr

level.script = maps/dm/mohdm1.scr
exec global/ambient.scr mohdm1

//exec global/ambient.scr mohdm2

//$world farplane 5000
//$world farplane_color (.333 .333 .329)

level waittill spawn

exec maps/dm/fix1.scr

local.fix1=spawn script_model

local.fix1 model "models/emitters/fire.tik"

local.fix1.origin=(46.90 421.22 384.13)

local.fix1.angles=(22.32 10.47 0.00)

local.fix1 notsolid

end

//-----------------------------------------------------------------------------

roundbasedthread:

// Can specify different scoreboard messages for round based games here.

level waitTill prespawn

level waittill spawn

// set the parameters for this round based match
level.dmrespawning = 0 // 1 or 0
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = kills // set to axis, allies, kills, or draw

level waittill roundstart

end
==========DarknesDarkDark========
-----------------You Owe the Dark!----------------
strafer
Captain
Posts: 237
Joined: Sat Jan 31, 2004 11:29 pm
Location: The Motherland..
Contact:

Post by strafer »

No...don't delete anything. I don't understand what the fix1.scr file is for...your code that adds the fire is in the mohdm1.scr file.
Grassy
First Lieutenant
Posts: 221
Joined: Sun Aug 22, 2004 11:36 am

Post by Grassy »

Ok try this.

Code: Select all

//remove the models dir from this line.
//local.fix1 model "models/emitters/fire.tik" 
//so it looks like this

local.fix1 model "emitters/fire.tik"
Grassy
Dark_Warwolf
Lance Corporal
Posts: 22
Joined: Sun Sep 19, 2004 1:24 am
Location: La Romana

Post by Dark_Warwolf »

no thanks cause it worked in an other manner.

-pak5/map/dmmohdm1 then you open it and script it in this 1 without putting map/dmmohdm1/obj in main folder.

it worked!

but thanks!
==========DarknesDarkDark========
-----------------You Owe the Dark!----------------
Grassy
First Lieutenant
Posts: 221
Joined: Sun Aug 22, 2004 11:36 am

Post by Grassy »

So what you are saying is you have edited the original scr in the original pk3 ??
Dark_Warwolf
Lance Corporal
Posts: 22
Joined: Sun Sep 19, 2004 1:24 am
Location: La Romana

Post by Dark_Warwolf »

Yep and it worked!
==========DarknesDarkDark========
-----------------You Owe the Dark!----------------
strafer
Captain
Posts: 237
Joined: Sat Jan 31, 2004 11:29 pm
Location: The Motherland..
Contact:

Post by strafer »

Not a good idea to do that...
Grassy
First Lieutenant
Posts: 221
Joined: Sun Aug 22, 2004 11:36 am

Post by Grassy »

Definatly not a good idea, if you only play single player you might be ok. But if you play online and that map comes up you will crash your game.
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

you'll crash your game and need to reinstall since if client versions are diffeent from server, for safety reasons, the server crashes them.

also editing even SP maps can cause trouble with match programs like Reverand.
Post Reply