Thanks cobra! thanks to all. Ill try it :D:D:D:D:D:D:D:D:D:D:D:D:D:D
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
// remagen
// architecture: stagger
// scripting: powzer
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" ""
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "mohdm3"
setcvar "g_gametype" "2"
setcvar "fraglimit" "0"
setcvar "timelimit" "25"
exec alienx/basebuild.scr::main 800 140
// call additional stuff for playing this map round based is needed
if(level.roundbased)
thread roundbasedthread
level waittill prespawn
// note all these must have a value!
// +----------------- light on or off ( 1 = on, 0 = off )
// | +--------------- red (1 is the max, so for a little red, use 0.5)
// | | +------------- green (same for red)
// | | | +----------- blue (same for red)
// | | | | ++-------- rotation speed (keep it sensiable lol)
// | | | | || ++----- the scale of the pickup object, 1 is default
// | | | | || || +--- lift creator ( 1 = on, 0 = off )
//---| script |-| origin |-| model name | | | | || || | |
//pickup point - axis
exec alienx/basebuild.scr::basebuild ( 2884.13 -3292.38 8.13 ) "static/indycrate.tik" 1 1 1 0 80 .5 0 0 1
exec alienx/basebuild.scr::basebuild ( 2865.79 -3455.69 8.12 ) "statweapons/mg42_gun.tik" 1 1 0 0 80 .5 0 0 1
exec alienx/basebuild.scr::basebuild ( 2871.10 -3589.42 8.12 ) "static/sandbag_link_main.tik" 1 0 0 1 80 .5 0 0 1
exec alienx/basebuild.scr::basebuild ( 3258.11 -4005.93 8.13 ) "static/indycrate.tik" 1 0 1 1 80 .5 1 0 1
exec alienx/basebuild.scr::basebuild ( 3500.00 -3481.00 8.13 ) "static/planningtable.tik" 1 1 1 1 80 .2 0 0 1
//pickup point - allied
exec alienx/basebuild.scr::basebuild ( 1442.56 -1387.25 -60.96 ) "static/indycrate.tik" 1 1 1 0 80 .5 0 0 1
exec alienx/basebuild.scr::basebuild ( 1450.68 -1120.66 -63.88 ) "statweapons/mg42_gun.tik" 1 1 0 0 80 .5 0 0 1
exec alienx/basebuild.scr::basebuild ( 1576.91 -1127.69 -63.88 ) "static/sandbag_link_main.tik" 1 0 0 1 80 .5 0 0 1
exec alienx/basebuild.scr::basebuild ( 880.62 -1387.73 -55.45 ) "static/indycrate.tik" 1 0 1 1 80 .5 1 0 1
exec alienx/basebuild.scr::basebuild ( 900.00 -1030.00 -62.00 ) "static/planningtable.tik" 1 1 1 1 80 .2 0 0 1
//*** precache dm stuff
exec global/dmprecache.scr
exec alienx/hud.scr::main
level.script = maps/dm/mohdm3.scr
exec global/ambient.scr mohdm3
thread blockaxis
thread blockallied
thread SpawnMarkers
thread hudsetup
thread global/door_locked.scr::lock
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
blockaxis: // allies
local.trig = spawn trigger_multiple "targetname" "spotA1"
local.trig.origin = ( 1057 -2564 -65 )
local.trig setsize ( 0 0 0 ) ( 690 2400 400 )
$spotA1 waittill trigger
local.player = parm.other
if (getcvar (g_kblock) =="1") {
if (local.player.dmteam == axis)
{local.player hurt(1000)}}
$spotA1 remove
thread blockaxis
end
blockallied: // Axis
local.trig = spawn trigger_multiple "targetname" "spotB1"
local.trig.origin = ( 2801 -3260 0 )
local.trig setsize ( 0 0 0 ) ( 455 2205 400 )
$spotB1 waittill trigger
local.player = parm.other
if (getcvar (g_kblock) =="1") {
if (local.player.dmteam == allies)
{local.player hurt(1000)}}
$spotB1 remove
thread blockallied
end
SpawnMarkers:
local.SpawnMarker1 = spawn func_beam "targetname" "Marker1" // allied1
local.SpawnMarker1.origin = ( 1432 -2598 10 )
local.SpawnMarker1 endpoint ( 1432 -2598 90.2 )
local.SpawnMarker1 scale 5.0
if (getcvar (g_kblock) =="1") {
local.SpawnMarker1 color ( 0.0 0.0 1.0 )
}
else
{
local.SpawnMarker1 color ( 0.0 0.0 0.0 )
}
local.SpawnMarker1 alpha 0.4
local.SpawnMarker1 numsegments 1
local.SpawnMarker1 activate
local.SpawnMarker2 = spawn func_beam "targetname" "Marker2" // allied2
local.SpawnMarker2.origin = ( 1834 -281 -50 )
local.SpawnMarker2 endpoint ( 1834 -281 40.2 )
local.SpawnMarker2 scale 5.0
if (getcvar (g_kblock) =="1") {
local.SpawnMarker2 color ( 0.0 0.0 1.0 )
}
else
{
local.SpawnMarker2 color ( 0.0 0.0 0.0 )
}
local.SpawnMarker2 alpha 0.4
local.SpawnMarker2 numsegments 1
local.SpawnMarker2 activate
local.SpawnMarker3 = spawn func_beam "targetname" "Marker3" // allied3
local.SpawnMarker3.origin = ( 1778 -1029 -50 )
local.SpawnMarker3 endpoint ( 1778 -1029 40.2 )
local.SpawnMarker3 scale 5.0
if (getcvar (g_kblock) =="1") {
local.SpawnMarker3 color ( 0.0 0.0 1.0 )
}
else
{
local.SpawnMarker3 color ( 0.0 0.0 0.0 )
}
local.SpawnMarker3 alpha 0.4
local.SpawnMarker3 numsegments 1
local.SpawnMarker3 activate
local.SpawnMarker4 = spawn func_beam "targetname" "Marker4" // axis1
local.SpawnMarker4.origin = ( 2835 -969 -50 )
local.SpawnMarker4 endpoint ( 2835 -969 40.2 )
local.SpawnMarker4 scale 5.0
if (getcvar (g_kblock) =="1") {
local.SpawnMarker4 color ( 1.0 0.0 0.0 )
}
else
{
local.SpawnMarker4 color ( 0.0 0.0 0.0 )
}
local.SpawnMarker4 alpha 0.4
local.SpawnMarker4 numsegments 1
local.SpawnMarker4 activate
local.SpawnMarker5 = spawn func_beam "targetname" "Marker5" // axis 2
local.SpawnMarker5.origin = ( 2698 -2346 10 )
local.SpawnMarker5 endpoint ( 2698 -2346 100.2 )
local.SpawnMarker5 scale 5.0
if (getcvar (g_kblock) =="1") {
local.SpawnMarker5 color ( 1.0 0.0 0.0 )
}
else
{
local.SpawnMarker5 color ( 0.0 0.0 0.0 )
}
local.SpawnMarker5 alpha 0.4
local.SpawnMarker5 numsegments 1
local.SpawnMarker5 activate
local.SpawnMarker6 = spawn func_beam "targetname" "Marker6" // axis 3
local.SpawnMarker6.origin = ( 2698 -3048 10 )
local.SpawnMarker6 endpoint ( 2698 -3048 100.2 )
local.SpawnMarker6 scale 5.0
if (getcvar (g_kblock) =="1") {
local.SpawnMarker6 color ( 1.0 0.0 0.0 )
}
else
{
local.SpawnMarker6 color ( 0.0 0.0 0.0 )
}
local.SpawnMarker6 alpha 0.4
local.SpawnMarker6 numsegments 1
local.SpawnMarker6 activate
wait 2
$Marker1 remove
$Marker2 remove
$Marker3 remove
$Marker4 remove
$Marker5 remove
$Marker6 remove
thread SpawnMarkers
end
hudsetup:
wait 1.0
waitframe
thread sethudup
goto hudsetup
end
sethudup:
if ($player != NULL)
{
huddraw_font 211 "facfont-20"
huddraw_alpha 211 1
huddraw_align 211 left bottom
huddraw_rect 211 100 -60 180 16
}
if (getcvar (g_kblock) =="0")
{
huddraw_color 211 0 1 0
huddraw_string 211 ("FIGHT!!!!")
local.player iprint ("FIGHT!!!!")
}
if (getcvar (g_kblock) =="0")
{
huddraw_color 211 1 0 0
huddraw_string 211 ("WARNING: Spawn Protection is ON!")
local.player iprint ("Spawn Protect is ON!!")
}
waitframe
end
//add this into the hunts map script you might have to exec it from a seperate script
local.killbrush = spawn trigger_hurt
local.killbrush damage 10000
local.killbrush.origin = ( 1902 -27 -210 )
local.killbrush setsize ( -9999 -9999 -10 ) ( 9999 9999 8 )
end
Vertex color specified for shader 'static_bspindle', but vertex colors are not valid for this model.I just wondered if this has to do with admin pro. Is there a conflicting pk3? I have been on admin pro 1.12 and this error was there but it never crashed my game. Now I updated to 1.22 and my game crashed: http://img463.imageshack.us/img463/9525/error7ta.jpg">http://img463.imageshack.us/img463/9525/error7ta.jpg
it started off like that. But we wanted a way to see hwo and who is not in the battle still by looking at the board.
yes. in mods.txt for survivor make a path to a gametype list. Thne in the game type list remove 3 and it will not run in roundbased.
See the online help www.elgan.funmodsforyou.com
use the following rcon command:
rcon admin_cmd "survivor 0"
Survivor will then turn off. To turn it back on:
rcon admin_cmd "survivor 1"
cant do nout sorry. planes are bad anyway hehe
// run the adverts
// run them how user sets. message printing is in messages.scr - this is so u cna edit how it displays easier
main:
if(level.run["message_center"] != "1"){end}
level.msginginuse=0
local.canad = waitexec global/settings.scr::getcmd "adverts"
//load the messages
local.message = waitexec game.file["settings/message_center"]::messages
//yey im allowed my owqn adverts
if(local.canad != "0")
{
local.messages[1][1] = "MESSAGE1"
local.messages[1][2] = "3"
local.messages[1][3] = "fade"
local.messages[2][1] = "MESSAGE2"
local.messages[2][2] = "3"
local.messages[2][3] = "fade"
local.n = 2
for(local.i = 1; local.i <= local.message.size ;local.i++)
{
local.n++
local.messages[local.n][1] = local.message[local.i][1]
local.messages[local.n][2] = local.message[local.i][2]
local.messages[local.n][3] = local.message[local.i][3]
}
}
else
{
local.messages = local.message
}
while(level.run["message_center"] == "1")
{
local.msgtime = waitexec global/settings.scr::getcmd "advert_time"
local.msgtime = int local.msgtime
if(local.msgtime < 0.05 || local.msgtime == NIL)
{
local.msgtime = 1
}
wait 600
for(local.i=1;local.i<=local.messages.size;local.i++)
{
if(level.run["message_center"] != "1"){end}
switch(local.messages[local.i][3])
{
case "fade":
waitexec global/ac/messaging/messages_fade.scr local.messages[local.i][1] local.messages[local.i][2]
break
case "typewriter":
waitexec global/ac/messaging/messages_typewriter.scr local.messages[local.i][1] local.messages[local.i][2]
break
case "scroll":
waitexec global/ac/messaging/messages_scroll.scr local.messages[local.i][1] local.messages[local.i][2]
break
default:
waitexec global/ac/messaging/messages_fade.scr local.messages[local.i][1] local.messages[local.i][2]
}
}
}