Page 1 of 1

obj for sh

Posted: Sat Dec 28, 2002 7:23 am
by guest
ok, how and were do you put your pk3 for playing obj in sh?...
i have tried the same as mohaa but my map shows only in TDM in sh not obj?....

Posted: Sat Dec 28, 2002 7:27 am
by mohaa_rox
Create a folder called maps and a subdirectory called obj. Put your maps into the obj folder (*.bsp, *.scr, *.lin, *.vis, *.min).

Posted: Sat Dec 28, 2002 7:31 am
by jv_map
If you have a .lin file you've done something wrong.

It's a pointfile generated when your map has a leak ;).

Posted: Sat Dec 28, 2002 7:32 am
by mohaa_rox
Ok, thanks for the tip. :wink:

Posted: Sat Dec 28, 2002 10:54 am
by guest
don't you think I done maps/obj..as I said it works for Mohaa but doing it this way does not work for SH..

Posted: Sat Dec 28, 2002 1:10 pm
by Slyk
I had issues with getting my pk3 to be recongnized, but it's a DM and I fixed that issue by naming it with "mp_mapname_dm" and putting the file either in the mainta/dm folder OR the /main folder, worked from both locations. Try to make the name like the ones in SH....may need to rework all the scripts, etc. though...but not saying this is 100% right, just worked for me and actually seemed to make good organizational sense.

Posted: Sat Dec 28, 2002 2:32 pm
by Innkeeper
Spearhead uses a naming convention to separate the different types of object oriented games. Object games are ?obj_yourmapname? and tug of war maps are ?MP_yourmapname_TOW?.

Posted: Sun Dec 29, 2002 1:53 pm
by Guest
ok, this is weird, got the obj to work in mohaa so I know its not the map, renamed to obj_assault nothing working in sh, renamed to user_assault, nothing working in sh.. now it must be the scripting which is as follows...

// obj_assault
// ARCHITECTURE: dodgerman20001
// SCRIPTING: dodgerman20001 & Gh?sT

main:
exec global/ambient.scr m5l1b
exec global/exploder.scr


level waitTill prespawn

setcvar "g_obj_alliedtext1" "Find And Destroy"
setcvar "g_obj_alliedtext2" "The Flak88"
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" "Prevent The Destruction"
setcvar "g_obj_axistext2" "Of The "
setcvar "g_obj_axistext3" "Flak88"
setcvar "g_scoreboardpic" "obj_assault.tga"



exec global/DMprecache.scr

level.script = maps/obj/obj_assault.scr

level waittill spawn

level.bomb_damage = 200
level.bomb_explosion_radius = 640
level.defusing_team = "axis"
level.planting_team = "allies"
level.targets_to_destroy = 1
level.dmrespawning = 0 // 1 is respawn 0 is norespawn.
level.dmroundlimit = 6 // round time limit in minutes
level.clockside = axis // set to axis, allies, kills, or draw

level waittill roundstart


$flak88_explosive1 thread global/obj_dm.scr::bomb_thinker //activates bomb counter

$flak88_explosive1 thread axis_win_timer
thread allies_win_bomb

thread bomb1_exploded $flak88_explosive1
end

//*** --------------------------------------------
//*** "Axis Victory"
//*** --------------------------------------------

axis_win_timer:

level waittill axiswin

end

//*** --------------------------------------------
//*** "Allied Victory"
//*** --------------------------------------------

allies_win_bomb:

while(level.targets_destroyed < level.targets_to_destroy)
waitframe

teamwin allies
end

//*** --------------------------------------------
//*** "Bomb 1 Exploded"
//*** --------------------------------------------

bomb1_exploded local.bomb1:

while (local.bomb1.exploded != 1)

wait .1

iprintlnbold "Allies have destroyed the Flak88!"


end

plz help as i'm sure your love this map.....

Posted: Sun Dec 29, 2002 2:03 pm
by mohaa_rox
Anonymous wrote:
level.script = maps/obj/obj_assault.scr
Ah hah! Try this:

level.script = maps/obj/MP_assault_obj.scr

Maybe it will work. Name all your maps to MP_assault_obj. When your map is finished, please let me know and maybe me and some of the staff can review it. By the way, sounds exciting. :wink: Feel free to register too.

Posted: Sun Dec 29, 2002 3:27 pm
by Guest
damn damn damn...lol..i'm getting fed up now....now the normal obj's are not in pk1/2/3 of sh so it must look for the files from mohaa...does this apply to other obj pk's or can you even make a sh obj using sh stuff...god knows..

Posted: Mon Dec 30, 2002 6:36 pm
by Guest
ok update, tried everything, i have the obj working but in sh it shows in tdm not obj as does dasboot, not i pk3 from map/obj and no matter what i name the damn thing it still won't go into obj..it does show in mohaa obj but not sh. now there must be a new way to pk3 that no one seems to now about.....

Posted: Mon Dec 30, 2002 6:39 pm
by Guest
maybe this is why we have yet to see a obj map?...

Posted: Mon Dec 30, 2002 7:13 pm
by Innkeeper
There is no new way that I am aware of. All the AA object maps show up for me and even one that I testing for shifty. Havew you upgraded to 2.11?