s&d assination objective

please keep scripting in here only

Moderators: Q-dad~TAG, EXP STAFF, Moderator

s&d assination objective

Postby loa » 01-06-2007 01:18 PM

ok this one was one of the scripts that was in my loa_newtown map.. i had a great deal of help with this from HkySk8r187 which went on to get hired to make cod and still works on the game.. he was the fella that made the map pointe du huck in single player where you climb the ropes up the cliff...


// map name LoA_New Town
// mapped by Life Of Agony AkA LoA
// Scripted Life
// FiFi scripted by Vonderbakluft
// AI Obj scripted by HkySk8r187 visit http://www.3dchad.com

main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" "Find And Kill"
setcvar "g_obj_alliedtext2" "The Gestapo Agent"
setcvar "g_obj_alliedtext3" ""

setcvar "g_obj_axistext1" "Find And Defend"
setcvar "g_obj_axistext2" "The Gestapo Agent"
setcvar "g_obj_axistext3" "At All Costs"

setcvar "g_scoreboardpic" "none"

level.dmrespawning = 1 // 1 or 0
level.dmroundlimit = 10 // round time limit in minutes
level.clockside = axis // set to axis, allies, kills, or draw

if(level.roundbased)
{
// set the parameters for round based match
level.clockside = kills // set to axis, allies, kills, or draw
}

///////////////////////
level waittill prespawn
///////////////////////

//*** Precache Dm Stuff
exec global/DMprecache.scr
exec global/exploder.scr::main
exec global/ai.scr
exec global/door_locked.scr
exec global/ambient.scr obj_team4

$world farplane 5500
$world farplane_color (0.43 0.44 0.43)

level.script = "maps/obj/LoA_newtown.scr"

////////////////////
level waittill spawn
////////////////////

waitthread obj1_random_setup

//Objectives setup
$obj1 thread obj1_death
exec global/objectives.scr::add_objectives 1 2 "Assasinate the Gestapo Agent!" $obj1.origin
waitthread global/objectives.scr::current_objectives 1

thread fifisetup

/////////////////////////
level waittill roundstart
/////////////////////////
end

obj1_random_setup:
local.location = ((randomint (5)) + 1)
local.location = $("spawn" + local.location)
$obj1.origin = local.location.origin
end

obj1_death:
self waittill death
iprintlnbold_noloc "The Gestapo Agent was killed!"
teamwin allies
end



i need to explain this in a little more detail.. this allows the mapper to set up a ai to be assinated by the attacking team this ai will fight back so instead of seting a bomb you need to cap his ass
User avatar
loa
Administrator
 
Posts: 1133
Joined: 03-06-2004 01:54 PM

Postby PyscoFalc » 01-06-2007 01:26 PM

can u add new games types too? with in maps
User avatar
PyscoFalc
NO i'm not a chav
 
Posts: 754
Joined: 04-03-2005 04:24 AM

Postby loa » 01-06-2007 01:28 PM

yes actualy, you can set a map to hold all game types which is realy cool cause when its s&d it will hide the ctf flags and vice versa. you canrealy make 1 single map hold all game types
User avatar
loa
Administrator
 
Posts: 1133
Joined: 03-06-2004 01:54 PM

Postby PyscoFalc » 01-06-2007 01:31 PM

Thats Well good then defiantly gonna get this sometime lol
User avatar
PyscoFalc
NO i'm not a chav
 
Posts: 754
Joined: 04-03-2005 04:24 AM


Return to Scripting

Who is online

Users browsing this forum: No registered users and 1 guest

cron