Two maps in one
Posted: Mon Feb 21, 2005 3:31 pm
Hi all guys.
Well, we (http://www.IceClanWeb.net) on our Clan are working in a mod that allow us to play a little internal league with 5 vs 5 teams by making stock maps in Spearhead some addings (sorry about my english hehe).
The idea is to spawn some objects in determined locations of the map and achieve the idea of a player can?t get through this locations and then he has less ways on the map where he can go.
By now I have achieved to Seal Remagen in two different ways that can be selected by a console cvar.
This is the part of the thread that allow us to select wich part (left side or right side) of the map we want to close.
I know this isn?t hard scripting but well, I?m a poor noob and that is very exciting for me, hehe.
I also know that a switch for only 2 cases is waste the power of the scripting language but probably we add some more features in the future.
And these are the threads that close the two sides:
left side:
right side:
Well the coments are in Spanish because I want my Clan partners to understand it but as far as this is very simple scripting I hope you all won?t have problems in understending it.
By now this works for Remagen and we?ve achieved the objective we as we thought. But during the work I had some questions I would like to ask you all.
I was trying to spawn hedgeohs like the omaha beach ones becouse we can spawn them in gropus and close doors that are bigger than a tank or a truck and I can?t never see any hedgeog on the map. Do someone know what is the tik file we have to call or even if it is possible to call these kind of models by scripting?
And another question. The barbwires I?ve got working were all with the angles (0 0 0) because when I tried to spawn one barbwire with (0 90 0) I saw the barbwire but I could pass throuhg it and can?t use it for my purposes. Do someone know how can I change the angles of a barbwire skeledon like I do with the image ones?
Well, thank you all in advance.
Well, we (http://www.IceClanWeb.net) on our Clan are working in a mod that allow us to play a little internal league with 5 vs 5 teams by making stock maps in Spearhead some addings (sorry about my english hehe).
The idea is to spawn some objects in determined locations of the map and achieve the idea of a player can?t get through this locations and then he has less ways on the map where he can go.
By now I have achieved to Seal Remagen in two different ways that can be selected by a console cvar.
This is the part of the thread that allow us to select wich part (left side or right side) of the map we want to close.
Code: Select all
liga_escuadras:
local.modificacion = getcvar(liguilla)
switch(local.modificacion)
{
case 1:
thread izquierda
break
case 2:
thread derecha
break
}
endI also know that a switch for only 2 cases is waste the power of the scripting language but probably we add some more features in the future.
And these are the threads that close the two sides:
left side:
Code: Select all
izquierda:
//Barrera en el lado del eje
//C?digo para el alambre de espinos
local.alambrada1 = spawn models/animate/barbwire_long.tik
local.alambrada1.origin = ( 2280 -3180 1)
local.alambrada1.angles = (0 0 0)
local.alambrada1.scale = 1.0
local.alambrada1 solid
//ocultarla es opcional
//local.alambrada1 hide
//C?digo para los soportes del alambre de espinos
//Soporte 1
local.soportea11 = spawn models/animate/barbwire_tetra_post.tik
local.soportea11.origin = ( 2280 -3245 0)
local.soportea11.angles = (0 0 0)
local.soportea11.scale = 1.0
local.soportea11 solid
//ocultarla es opcional
//local.soportea11 hide
//Soporte 2
local.soportea12 = spawn models/animate/barbwire_tetra_post.tik
local.soportea12.origin = ( 2280 -2960 0)
local.soportea12.angles = (0 0 0)
local.soportea12.scale = 1.0
local.soportea12 solid
//ocultarla es opcional
//local.soportea12 hide
//Barrera en el lado aliado
//C?digo para el tanque
local.tanque1 = spawn models/vehicles/tigertank.tik
local.tanque1.origin = ( 1420 -2675 0)
local.tanque1.angles = (0 130 0)
local.tanque1.scale = 1.0
local.tanque1 solid
//ocultarlo es opcional
//local.tanque1 hide
endCode: Select all
derecha:
//Barrera del lado aliado
//Conjunto de bengalas para hacer una vaya en el acceso de base aliada al tubo
//Bengala 1
local.bengala1 = spawn models/animate/bangalore.tik
local.bengala1.origin = ( 1745 -290 0)
local.bengala1.angles = ( 0 180 0)
local.bengala1.scale = 1.0
local.bengala1 solid
//ocultarla es opcional
//local.vengala1 hide
//Bengala 2
local.bengala2 = spawn models/animate/bangalore.tik
local.bengala2.origin = ( 1745 -340 -25)
local.bengala2.angles = ( 0 180 0)
local.bengala2.scale = 1.0
local.bengala2 solid
//ocultarla es opcional
//local.vengala2 hide
//Bengala 3
local.bengala3 = spawn models/animate/bangalore.tik
local.bengala3.origin = ( 1745 -240 -25)
local.bengala3.angles = ( 0 180 0)
local.bengala3.scale = 1.0
local.bengala3 solid
//ocultarla es opcional
//local.bengala3 hide
//Bengala 4
local.bengala4 = spawn models/animate/bangalore.tik
local.bengala4.origin = ( 1745 -340 25)
local.bengala4.angles = ( 0 180 0)
local.bengala4.scale = 1.0
local.bengala4 solid
//ocultarla es opcional
//local.bengala4 hide
//Bengala 5
local.bengala5 = spawn models/animate/bangalore.tik
local.bengala5.origin = ( 1745 -240 25)
local.bengala5.angles = ( 0 180 0)
local.bengala5.scale = 1.0
local.bengala5 solid
//ocultarla es opcional
//local.bengala5 hide
//Esta barrera es compartida por el lado aliado y el lado nazi
//Tanque tapando el acceso de museo al tubo y de biblioteca al tubo
//Tanque
local.tanque2 = spawn models/animate/vehicle_german_kingtank.tik
local.tanque2.origin = ( 2803 -598 -87)
local.tanque2.angles = (0 0 0)
local.tanque2.scale = 1.0
local.tanque2 solid
//ocultarlo es opcional
//local.tanque2 hide
//Ca??n del tanque (van por separado)
local.ctanque2 = spawn models/vehicles/kingcannon.tik
local.ctanque2.origin = ( 2715 -598 10)
local.ctanque2.angles = (0 0 0)
local.ctanque2.scale = 1.0
local.ctanque2 solid
//ocultarlo es opcional
//local.ctanque2 hide
endBy now this works for Remagen and we?ve achieved the objective we as we thought. But during the work I had some questions I would like to ask you all.
I was trying to spawn hedgeohs like the omaha beach ones becouse we can spawn them in gropus and close doors that are bigger than a tank or a truck and I can?t never see any hedgeog on the map. Do someone know what is the tik file we have to call or even if it is possible to call these kind of models by scripting?
And another question. The barbwires I?ve got working were all with the angles (0 0 0) because when I tried to spawn one barbwire with (0 90 0) I saw the barbwire but I could pass throuhg it and can?t use it for my purposes. Do someone know how can I change the angles of a barbwire skeledon like I do with the image ones?
Well, thank you all in advance.