Domination: Capture point height limit, or script to capture point?

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
Infirnex
 
Posts: 34
Joined: Wed Jun 06, 2012 1:57 am
Location: United States of America

Domination: Capture point height limit, or script to capture point?

#1

Post by Infirnex » Sat Jun 20, 2015 1:04 am

I'm currently trying to make a domination map for the mod Push. It's then I realized that you can capture a point from any height. I presume this is because it's triggered simply when you enter the sector.

Now for any other gameplay mod I can think of, this isn't an issue. Most gameplay mods don't have such extreme amount of vertical gameplay. However, with Push maps generally having open areas of 4096 height (and higher), this allows for people to simply fly by points to capture without ever being seen.

So here's the question: is there a way to control this? I've tried a non-solid 3d floor, and it failed. I tried Transfer_Heights, but that fails too.

If it can be done via script, that would help immensely, but I don't know a possible script to use.

User avatar
Ænima
Addicted to Zandronum
Posts: 3583
Joined: Tue Jun 05, 2012 6:12 pm

RE: Domination: Capture point height limit, or script to capture point?

#2

Post by Ænima » Sat Jun 20, 2015 1:10 am

Code: Select all

while (GetActorZ(0) - GetActorFloorZ(0) < 16)
{
[capture stuffs];
Delay(3);
}
[uncapture stuffs];
Last edited by Ænima on Sat Jun 20, 2015 1:12 am, edited 1 time in total.
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

User avatar
Infirnex
 
Posts: 34
Joined: Wed Jun 06, 2012 1:57 am
Location: United States of America

RE: Domination: Capture point height limit, or script to capture point?

#3

Post by Infirnex » Sat Jun 20, 2015 1:15 am

That would be the way I would go about it. I'm asking about the "capture stuffs" part. What would I put there?

User avatar
Ænima
Addicted to Zandronum
Posts: 3583
Joined: Tue Jun 05, 2012 6:12 pm

RE: Domination: Capture point height limit, or script to capture point?

#4

Post by Ænima » Sat Jun 20, 2015 1:26 am

You'd probably want to have an interger representing each capture point.

Code: Select all

int hallwaypoint;
int towerpoint;
int cavepoint;

And to expand on the capturestuffs:

Code: Select all

hallwaypoint = PlayerTeam()+1;
And uncapture:

Code: Select all

Hallwaypoint = 0;
So then have an OPEN script constantly check the values of the intergers. 1 means blue captured it, 2 means red, and 0 is uncaptured. Once a team has all, they win. Assuming this is for teamplay.
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

User avatar
Infirnex
 
Posts: 34
Joined: Wed Jun 06, 2012 1:57 am
Location: United States of America

RE: Domination: Capture point height limit, or script to capture point?

#5

Post by Infirnex » Sat Jun 20, 2015 1:32 am

Oh, this is a bit...different that what I had planned. I'm using the Domination mode in Zandronum already, which plays exactly the same as the mode from Unreal (sans height issues). Not that this seems bad and I will definitely test the mode. It's a start and may be the only thing that could potentially work. However, not exactly what I'm look for.

And yes, this is for teamplay.

Post Reply