Help with Script
Posted: Fri Apr 15, 2005 2:37 pm
Ok here is my script, i want to no whats wrong, when i go in game, nothing appears. So i cant test it, i tried looking in the log file but noting appears there either.
[/code]
Code: Select all
// SOUTHERN FRANCE
// ARCHITECTURE: SENN
// SCRIPTING: POWZER
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" "Southern France Edit"
setcvar "g_obj_alliedtext2" "Edit By"
setcvar "g_obj_alliedtext3" "G-Unit"
setcvar "g_obj_axistext1" "{AXS}"
setcvar "g_obj_axistext2" "www.alienxsoftware.co.uk"
setcvar "g_obj_axistext3" "Come An Play"
setcvar "g_scoreboardpic" "mohdm1"
// call additional stuff for playing this map round based is needed
if(level.roundbased)
thread roundbasedthread
level waitTill prespawn
////////////////////////////////////
///////// Medic ///////////////////
//////////////////////////////////
medbox:
local.medbox = spawn script_model
local.medbox model "items/item_100_healthbox.tik"
local.medbox.origin = ( 151.63 484.00 384.13 )
local.medbox.angles = ( 0 0 0 )
local.medbox.scale = 1.0
local.medbox light 1 0 100 0
local.medbox solid
local.medboxtrig = spawn trigger_use
local.medboxtrig targetname medbox
local.medboxtrig.origin = ( 151.63 484.00 384.13 )
local.medboxtrig setsize ( -20 -20 30 ) ( 30 30 80 )
local.medboxtrig message "You are now a medic (Hold E and Aim your laser on a person)"
local.medboxtrig setthread medic1
Medic1:
self waittill trigger
local.player=parm.other
if (local.player.useheld == 1)
{
local.player.usinglaser = 1
local.medic1 setthread ent
local.ent = spawn func_beam
local.ent.origin = local.medbox.origin
local.ent minoffset 0.0
local.ent maxoffset 0.0
local.ent numsegments 1
local.ent life 0
local.ent color ( 0 0 100 )
local.ent alpha 0.4
local.ent alwaysdraw
local.ent activate
local.ent scale .5
local.ent setthread ent1
end
ent1:
local.ent1 = spawn script_model
local.ent1 model "items/dm_50_healthbox.tik"
local.ent1origin = (trace local.entorigin (local.entorigin + 350 ))
while (local.player.useheld)
{
if (local.ent1 isTouching local.body.team)
{
local.body.team fullheal
local.ent color (100 0 0)
{
//*** 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
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