Examples of uses for this feature:
Spoiler:
Moderator: GZDoom Developers
Spoiler:
Code: Select all
Class PyCodeGen
{
play string levelCode()
{
//G_PickPlayerStart(int pnum, int flags = 0);
string checkcode;
int playerposes[4];
for(int i = 0;i<4;i++)
{
vector3 getvec = G_PickPlayerStart(i);
playerposes[i] = getvec.x+getvec.y+getvec.z;
}
checkcode = level.MapName..checkcode..playerposes[0]..playerposes[1]..playerposes[2]..playerposes[3]..level.Sides[0].GetTexture(1);
checkcode.ToUpper();
Console.Printf("PyCode: "..checkcode);
return checkcode;
}
}
I think the important question is, what exactly are you trying to prevent by blocking this feature?Graf Zahl wrote:Wait until I slightly randomize the spawn positions of monsters and players...
Someone might make a mod that spawns an actor at the start of E1M1 that's just a big billboarded sprite of the text "XASER IS A BUTT AND ENJOYS LOOKING AT AND THINKING ABOUT BUTTS". Which is both libel and slander, for Xaser is a saint and incapable of impure thoughts and/or actions.Rachael wrote:I think the important question is, what exactly are you trying to prevent by blocking this feature?
It's literally 7 lines of code that are copy-pasted and modified from another 7 lines (so about 2 min worth of work max), so there's something wrong with this that you think will actually happen if it's exposed.