Need some help (coders only)

Talk about any Deus Ex game modification here, e.g. maps, package or a total conversion.

Moderator: Forum Guards

Need some help (coders only)

Postby ~Dev » Mon Dec 22, 08 11:35 pm

Making a map, but i need some code that say, when you press the button it says "<person> cleared the scores!" Really much needed, a lot of credit will be given.

Thanks, ~Dev.
Image
-~-
Image
User avatar
~Dev
Wannabe
 
Posts: 81
Joined: Mon Oct 27, 08 4:23 pm

Postby ~ô¿ô~Nobody~ » Tue Dec 23, 08 1:02 am

Stupid question.. what's the point in clearing the scores?


Anyway.. admins can do that


admin set PlayerReplicationInfo Score 0
admin set PlayerReplicationInfo Deaths 0
admin set PlayerReplicationInfo Streak 0
Nobody is perfect...
------------------------------
Longc[A]t wrote:I still think Dae is a russian spambot.

~[A]Daedalus~ wrote:There will be a day when my patience goes away and you, along with all who rant with you, will get banned.

ô¿ô¥[GODZ]¥NOCHANC wrote:I can ban any one I want ANY time I want. You have no rights here.
User avatar
~ô¿ô~Nobody~
Alpha
 
Posts: 2520
Joined: Fri Dec 31, 04 3:20 pm
Location: Proclarush Taonas

Postby Gishank » Tue Dec 23, 08 11:05 am

Perhaps to start a new round without having to reload the map?
Image
Gishank
Forum Super Hero
 
Posts: 4235
Joined: Sun Aug 28, 05 9:17 am
Location: London, England.

Postby -Wíld- » Tue Dec 23, 08 11:47 am

something like this? it should work :)

Code: Select all
class ScoreClearSwitch expands Switch2;

function Frob(Actor Frobber, Inventory frobWith)
{
      local DeusExPlayer Player;

Broadcastmessage(DeusExPlayer(frobber).playerreplicationinfo.playername$" cleared the scores!");
   foreach allactors (class'Deusexplayer',player)
        {
            Player.PlayerReplicationInfo.Score=0;
            Player.PlayerReplicationInfo.Deaths=0;
            Player.PlayerReplicationInfo.Streak=0;
        }
}

defaultproperties
{
Itemname="Click here to clear the scoreboard"
}
Last edited by -Wíld- on Tue Dec 23, 08 12:05 pm, edited 2 times in total.
-Wíld-
Newbie
 
Posts: 10
Joined: Tue Nov 06, 07 10:10 am

Postby ~Dev » Tue Dec 23, 08 1:50 pm

Thanks wildy 8)
Image
-~-
Image
User avatar
~Dev
Wannabe
 
Posts: 81
Joined: Mon Oct 27, 08 4:23 pm


Return to Modifications

Who is online

Users browsing this forum: No registered users and 100 guests