Pick up the flag, would ya?!
Moderator: Moderators
- squipple
- 1st Lieutenant

- Posts: 420
- Joined: Tue Jun 28, 2005 7:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Contact:
Pick up the flag, would ya?!
Anyone have issues when setting up 1-flag that nobody can pick up the flag? AI, players, anyone, walk right through the flag without picking it up. Can't figure out why. I've compared luas to a working map and a shipped map, and nothing seems to alleviate it.
-
SymbolS
RE: Pick up the flag, would ya?!
post your lua
-
Bac-Talan
- Captain

- Posts: 487
- Joined: Wed Nov 30, 2005 8:14 pm
RE: Pick up the flag, would ya?!
Could possibly be a problem with the flag object or properties itself. I don't know, this hasn't happened to me.
- squipple
- 1st Lieutenant

- Posts: 420
- Joined: Tue Jun 28, 2005 7:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Contact:
Don't know that it'll help, because it's got the same elements as a lua that works in another map, but here's the relevant portions of it.
ScriptCB_DoFile("setup_teams")
Conquest = ScriptCB_DoFile("ObjectiveOneFlagCTF")
-- REP Attacking (attacker is always #1)
REP = 1;
CIS = 2;
-- These variables do not change
ATT = REP;
DEF = CIS;
function ScriptPostLoad()
SoundEvent_SetupTeams( REP, 'rep', CIS, 'cis' )
ctf = ObjectiveOneFlagCTF:New{teamATT = REP, teamDEF = CIS,
textATT = "game.modes.1flag", textDEF = "game.modes.1flag2",
captureLimit = 5, flag = "flag", flagIcon = "flag_icon",
flagIconScale = 3.0, homeRegion = "flag_home",
captureRegionATT = "team1_capture", captureRegionDEF = "team2_capture",
capRegionMarkerATT = "hud_objective_icon_circle", capRegionMarkerDEF = "hud_objective_icon_circle",
capRegionMarkerScaleATT = 3.0, capRegionMarkerScaleDEF = 3.0, multiplayerRules = true, hideCPs = true}
ctf:Start()
EnableSPHeroRules()
end
--
SetMemoryPoolSize("FlagItem", 1)
SetSpawnDelay(10.0, 0.25)
ReadDataFile("dc:ED9\\ED9.lvl", "ED9_1flag")
-
Rikino
RE: Pick up the flag, would ya?!
Okay, I may be wrong, but I think I've heard of this before. Try levitating the flag off the ground, make sure it's not sunken into the terrain at all.
If that doesn't work, do both teams have that problem? It might be a problem with whose side the flag is on or something.
If that doesn't work, do both teams have that problem? It might be a problem with whose side the flag is on or something.
- squipple
- 1st Lieutenant

- Posts: 420
- Joined: Tue Jun 28, 2005 7:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Contact:
Yeah, I've tried bringing the flag up off the ground a bit, maybe I just need to bring it up more. It's 1-flag that has the problem. 2-flag works just fine with flags slightly above the ground. I tried renaming and recreating the 'homeregion' as well. I'm guessing I'm on the right track with it having to do with something in ZE or perhaps with the flag object itself, I just don't know what.
EDIT:
This issue has been solved. It was a wierd thing with the relationship between flag/terrain. There was a thin object between the flag and the terrain. I just raised the terrain ever-so-slightly to be inside that object and it works. Wierd.
But in the process I noticed this IMPORTANT NOTE TO REMEMBER: Right out of the initial map setup munge, the ABCg_1flag lua is broken. It has the line:
and it should be
If you munge with the improper line, you'll end up with the 150/150 on each side and no AI will spawn.
EDIT:
This issue has been solved. It was a wierd thing with the relationship between flag/terrain. There was a thin object between the flag and the terrain. I just raised the terrain ever-so-slightly to be inside that object and it works. Wierd.
But in the process I noticed this IMPORTANT NOTE TO REMEMBER: Right out of the initial map setup munge, the ABCg_1flag lua is broken. It has the line:
Code: Select all
SoundEvent_SetupTeams( REP, 'rep', CIS, 'cis' )Code: Select all
SoundEvent_SetupTeams( IMP, 'imp', ALL, 'all' )