UnrealScript Question


#1

Anyone here know a lot of UnrealScript? I posted this on a more suitable forum (BeyondUnreal) but I swear that is one of the most inactive forums I have ever seen!

So… I have a game type in which you must get rid of all your points by killing people (so that your score goes to 0) but everytime you die you go up by 1.

Heres my 2 problems-

When you kill someone, your score doesnt go down.
It shows the people that are losing to be winning, and people that are winning to be losing. (I know this has something to do with the scoreboard sorting and stuff, but how do I make it recognize it?)

I’m new to UnrealScript btw, if anyone knows please help! :slight_smile:


#2

I posted this on a more suitable forum (BeyondUnreal) but I swear that is one of the most inactive forums I have ever seen!

Not having your post answered on BU does not equal “inactive”. :surprised

1st problem:
You have to tell it to do so in your gametype. Check the CheckScore, ScoreObjective, and ScoreKill functions in the base UnrealGame.DeathMatch class, and modify them in your own gametype class to your own ends.

2nd problem:
Did you create a new scoreboard? If you just subclassed your new gametype from DeathMatch, then it will use the default DM scoreboard–which only sorts by numerical priority. Check out XInterface.ScoreBoardDeathMatch, subclass it(adding your sorting preferences), and make sure you set your gametype’s defaultproperties to point to it(“ScoreBoardType”).


#3

Well, I knew why it wasn’t working, but I didn’t know how to do it. (the scoreboard)

Also, for the SCOREKILL thing… I did edit the ScoreKill to minus a kill, but it still doesn’t do anything. I’ll check more out later. Thanks though.


#4

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.