Ive just started coding in unreal script. ive followed various tutorials from Wiki and other places and have managed to make my own game type. The teams work, so does the scoring. The Hud has been modified and the Scoreboard has too. (i have programmed in a few languages before, so things are easy to pick up)
BUT...
i can't seem to get that blasted Change Teams button back. You know, the one on the in-game menu when you press escape.
I do believe this is the code in the GUI2K4.UT2K4MidGameMenu class that checks to see if the button should be drawn.
if (PC.GameReplicationInfo == None || !PC.GameReplicationInfo.bTeamGame || PC.GameReplicationInfo.bNoTeamChanges )
RemoveComponent(bChangeTeam);
basically this says "something OR bTeamGame=False or bNoTeamChanges is True
im not too sure about that first one, i think it is the problem.
i found the point in my code where i should write
GameReplicationInfo.bNoTeamChanges = False;
GameReplicationInfo.bTeamGame = True;
its in my PreBeginPlay event.
(i think thats where it should go)
but for some reason the button doesnt appear.
I then searched for several hours through all the invasion source code to try and find something that relates to this button but i found nothing.
can anyone shed any light on this?
Thanks.
Rye
BUT...
i can't seem to get that blasted Change Teams button back. You know, the one on the in-game menu when you press escape.
I do believe this is the code in the GUI2K4.UT2K4MidGameMenu class that checks to see if the button should be drawn.
if (PC.GameReplicationInfo == None || !PC.GameReplicationInfo.bTeamGame || PC.GameReplicationInfo.bNoTeamChanges )
RemoveComponent(bChangeTeam);
basically this says "something OR bTeamGame=False or bNoTeamChanges is True
im not too sure about that first one, i think it is the problem.
i found the point in my code where i should write
GameReplicationInfo.bNoTeamChanges = False;
GameReplicationInfo.bTeamGame = True;
its in my PreBeginPlay event.
(i think thats where it should go)
but for some reason the button doesnt appear.
I then searched for several hours through all the invasion source code to try and find something that relates to this button but i found nothing.
can anyone shed any light on this?
Thanks.
Rye