2. I know barriers tell AIs where not to go. But what makes it a death zone? and how do you put invisible walls? Becuz yavin billboards you can walk through.
Thanks
RE: Boundrys and Fog
Posted: Sat Jun 16, 2007 10:10 pm
by Ipodzanyman
fog is a setting in the sky file, you can edit the parameters........
Posted: Sat Jun 16, 2007 10:54 pm
by EGG_GUTS
Ok. How would I do that?
Posted: Sat Jun 16, 2007 11:20 pm
by FragMe!
For question 2
Need to use regions to create death zone Create a region make it the size and shape you want and in type make it deathregion.
For the billboards use the com_inv_col_8, 16, 32 or 64 objects they can be found in the data_xxx/common directory. They are fun to place because until you select them well they're invisible.
Posted: Sat Jun 16, 2007 11:41 pm
by Ipodzanyman
EGG_GUTS wrote:Ok. How would I do that?
From one of my maps wrote:SkyInfo()
{ Enable(1);
FogColor(194,197,199);
FogRange(0.5, 600.0);
Thanks guys that will help alot. One more question. how would I put fog in selective areas only? Not the whole map?
Posted: Sun Jun 17, 2007 8:01 am
by Snork
Go to the GEO assets. Theres Geo_prop_cloud, Geo_prop_mist and Geo_prop_dust.
Once you get all the files they require, you can place em in your level like objects, and they'll appear ingame.
Posted: Sun Jun 17, 2007 8:30 am
by EGG_GUTS
Ok thanks. But I have 2 more questions
1. Is the geo prop cloud mist and dust spose to come out all weird in ZE?
2. How would I re-scale it to be bigger? I have to cover a large area around the battle field.
Posted: Sun Jun 17, 2007 9:05 am
by Ipodzanyman
change the odf to make it bigger, and it looks like an arrow in ZE but not ingame..........
Posted: Sun Jun 17, 2007 9:30 am
by EGG_GUTS
OK I put 2 death regions and they didn't work I put death region in the region type and every thing. Do I have to put it in the Lua? and what do I put in the odf to make the clouds bigger?
for death regions you need to put this line in the .lua
AddDeathRegion("************") where the *s are the name of your death region also in the second region name in ZE put deathregion
Posted: Sat Jun 23, 2007 12:36 pm
by EGG_GUTS
It didn't work can you see what I did wrong
Here's My Lua and pic of ZE
Hidden/Spoiler:
--
-- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved.
--
-- Mos Eisley Hero Deathmatch (uses Space Assault rules)
-- First team to reach 100 kills wins
--
---------------------------------------------------------------------------
-- ScriptPostLoad
---------------------------------------------------------------------------
function ScriptPostLoad()
EnableSPHeroRules()
-- This is the actual objective setup
TDM = ObjectiveTDM:New{teamATT = 1, teamDEF = 2,
multiplayerScoreLimit = 100,
textATT = "game.modes.tdm",
textDEF = "game.modes.tdm2", multiplayerRules = true, isCelebrityDeathmatch = true}
TDM:Start()
AddAIGoal(1, "Deathmatch", 100)
AddAIGoal(2, "Deathmatch", 100)
end
---------------------------------------------------------------------------
-- ScriptInit
---------------------------------------------------------------------------
function ScriptInit()
--tell the game to load our loading image
ReadDataFile("dc:Load\\common.lvl")
SetMemoryPoolSize ("ClothData",20)
SetMemoryPoolSize ("Combo",70) -- should be ~ 2x number of jedi classes
SetMemoryPoolSize ("Combo::State",850) -- should be ~12x #Combo
SetMemoryPoolSize ("Combo::Transition",850) -- should be a bit bigger than #Combo::State
SetMemoryPoolSize ("Combo::Condition",850) -- should be a bit bigger than #Combo::State
SetMemoryPoolSize ("Combo::Attack",750) -- should be ~8-12x #Combo
SetMemoryPoolSize ("Combo::DamageSample",8000) -- should be ~8-12x #Combo::Attack
SetMemoryPoolSize ("Combo::Deflect",140) -- should be ~1x #combo -- should be ~1x #combo
ReadDataFile("ingame.lvl")
ALL = 1
IMP = 2
-- These variables do not change
ATT = 1
DEF = 2
Try putting your AddDeathRegion lines at the bottom of the function ScriptPostLoad section under EnableSPHeroRules() in your LUA.
I have it done this way on a testmap and it works fine.
function ScriptPostLoad()
EnableSPHeroRules()
AddDeathRegion("deathregion")
AddDeathRegion("deathregion2")
end
Posted: Tue Jun 26, 2007 9:04 am
by EGG_GUTS
Thanks Ace. But only one is working. For some weird reason. Does anyone know why the other one isn't?
deathregion summary
Posted: Tue Jun 26, 2007 5:25 pm
by AceMastermind
Here are some conclusions of my DeathRegion testing.
You can create deathregions in any layer in ZE.
Go into Region Edit mode and create a region, you can leave it the default name if you want or call it deathregion, the name in the Class Properties box is the name that is used to reference in the LUA, hence:
AddDeathRegion("deathregion")
I never could get a single group of deathregions to work from 1 group name, so when creating another deathregion, click on "New Region", then "New Group", give it the DeathRegion prefix just as we did above, except this time just add a 1 at the end, so it looks like this in the class properties box:
deathregion1
this is the name that will be used as reference for your second deathregion in the LUA, hence:
AddDeathRegion("deathregion1")
And if you add more just keep following the steps above for the same as the second one except name them:
deathregion3
deathregion4
and so forth in the class properties for your deathregions.
then munge and play your map and walk into them and watch yourself die.