Author |
Message |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 08/05/2008 23:34:12
|
greg11
Wicked Sick!
Joined: 02/10/2008 20:00:40
Messages: 526
Location: Hood River, OR
Offline
|
I just finished writing a script that tracks what skins players are using.
I wrote this to help manage the skin overload that comes with downloading the skin packs. I plan on using this information to also purge out skins that are not used.
When I get my new website up, I'll see about maintaining an up to date skin pack.
Edit: Updated 8-30-08
Code:
1 3JAYS[M] Ily 08/12/2008 09:48:23 PM
2 abacrombie Raphael 08/20/2008 10:10:42 PM
3 Adelle Monkey 08/21/2008 04:16:31 PM
4 Adrenachrome Stickly 08/18/2008 07:13:31 AM
5 ]a!r[AM Darkness 08/27/2008 07:56:19 PM
6 (AUTOAIM)Micron DarkDestruction 08/26/2008 12:41:24 AM
7 beastdog ProxyKing 08/19/2008 06:29:02 PM
8 blade_tx Silencer 08/27/2008 08:37:25 PM
9 blade_x Silencer 08/27/2008 11:36:18 PM
10 bloodog ?Tau 08/17/2008 03:59:31 PM
11 BRANDI_MD Teddy 08/28/2008 10:22:39 PM
12 BubbleDude nali 08/29/2008 07:11:16 AM
13 BubblesMuhaha nali 08/29/2008 07:31:39 AM
14 Buster Brian 08/28/2008 10:07:09 PM
15 CheesecakeLlama nali 08/29/2008 05:23:39 AM
16 Clonetrooper CloneTrooper 08/29/2008 10:26:06 PM
17 cribbagekids Optimus 08/28/2008 06:39:01 PM
18 cribbage_kids Optimus 08/28/2008 08:44:21 PM
19 cribbage Optimus 08/29/2008 12:06:31 AM
20 critl_girl Aurora 08/17/2008 06:54:59 AM
21 Cyborg AVP2MaskedPredator 08/26/2008 09:23:17 PM
22 DAMAGE_1stAid Edge-T 08/29/2008 04:02:30 PM
23 DAMAGE Edge-T 08/29/2008 03:36:37 PM
24 Darktrooper Hazardtrooper 08/26/2008 05:29:36 PM
25 <DC>Boingo_Babe Bladea 08/25/2008 05:04:05 PM
26 (DC)BotBooster Farnsworth 08/28/2008 03:27:44 PM
27 (DC)BotDoctor Farnsworth 08/19/2008 03:13:28 PM
28 (DC)BotFodder Farnsworth 08/27/2008 03:32:28 PM
29 (DC)BotWrecker Farnsworth 08/17/2008 05:59:32 PM
30 <DC>ChameleonJr_Impo Edge-T 08/10/2008 03:56:07 AM
31 (DC)clueless Bunny 08/29/2008 10:58:01 PM
32 <DC>Count_d'Medic Deinonychus 08/22/2008 09:54:38 PM
33 <DC>Count_d'money Deinonychus 08/19/2008 10:30:33 PM
34 (DC)darkway 08/28/2008 10:43:37 PM
35 (DC)DEMONSLAYER Graah 08/27/2008 10:27:14 PM
36 (DC)Dr.Wayno BenderBlack 08/29/2008 09:08:14 AM
37 [DC]FodderFigure DC_Fry 08/29/2008 04:43:44 PM
38 [DC]FodderFigure_MD DC_Fry 08/28/2008 02:15:56 PM
39 (DC)GreedoGumbus JunkYardMech 08/24/2008 11:34:16 PM
40 (DC)GreedoMedKit JunkYardMech 08/25/2008 12:06:21 AM
41 (DC)JuneBugAM VashTheStampede 08/26/2008 10:41:44 PM
42 (DC)JuneBug VashTheStampede 08/28/2008 03:38:26 AM
43 (DC)Piper_ENG Karaash 08/14/2008 12:35:19 AM
44 [DC]thth Smith 08/29/2008 03:41:48 PM
45 (DC)Trauma Ageha 08/26/2008 09:18:01 PM
46 (DC)vasago Donatello 08/24/2008 09:31:43 PM
47 (DC)ZOG-AM Ashur 08/28/2008 07:05:05 PM
48 [DC]ZOG Ashur 08/29/2008 10:52:47 PM
49 Desert_Wrath HomerSimpson 08/29/2008 02:29:49 PM
50 diddy<StOnEd> Smith 08/28/2008 06:02:42 PM
51 dommi Krypt 08/29/2008 10:58:02 PM
52 dommi-sama Effigy 08/22/2008 10:46:34 PM
53 dommi-Sama Effigy 08/29/2008 10:20:50 PM
54 dorkchop2 Razor 08/15/2008 09:29:40 PM
55 DragonBladeMedic G-Raptor 08/24/2008 05:11:32 PM
56 DragonmasterE FireDrake 08/29/2008 10:26:06 PM
57 Dragonmaster FireDrake 08/28/2008 05:57:30 PM
58 DragonmasterM FireDrake 08/28/2008 07:05:05 PM
59 El_Guapo Darth_Vader 08/15/2008 10:33:13 AM
60 Elite_Engine(AI) KouRyuuB 08/24/2008 11:12:08 PM
61 Elite_Guard(AI) ?Maul 08/29/2008 09:12:30 PM
62 Elite_Junkie(AI) ?Kaang 08/29/2008 10:58:01 PM
63 Elite_Medic(AI) KouRyuuB 08/24/2008 06:55:24 PM
64 enJOEneer Raphael 08/19/2008 07:00:25 PM
65 ((>>F8_AL<<)) ShinRyuuSC 08/18/2008 11:34:39 AM
66 Flaashman Liquid_Gaargod 08/29/2008 07:34:38 PM
67 FlackMaster GorgeNub 08/09/2008 04:02:22 PM
68 Flak_Monkey Bender 08/24/2008 08:08:30 PM
69 Fluffy_Nooblet Droid2k4 08/05/2008 10:29:31 PM
70 FogRaider_MM Uller 08/09/2008 03:46:53 PM
71 Ghost_Ranger JakeDunn 08/29/2008 02:04:34 AM
72 Ghost_Recon JakeDunn 08/22/2008 09:22:15 PM
73 Ghost_Surgeon HorusGhost 08/28/2008 09:36:12 PM
74 Ghost_Warlock JakeDunn 08/26/2008 11:48:55 PM
75 Greg11_AM Blue_Remus 08/29/2008 07:24:16 PM
76 Greg11 Blue_Remus 08/29/2008 07:29:27 PM
77 Greg11_MD Blue_Remus 08/24/2008 02:48:33 AM
78 Greg11_WM Dark_Dominator 08/28/2008 12:18:19 AM
79 Grizzled_EMT Super_Mario 08/29/2008 05:23:39 AM
80 HighwratH HomerSimpson 08/29/2008 02:45:14 PM
81 Hobo_Healer Raphael 08/21/2008 08:44:58 PM
82 josephtoilolo Ily 08/06/2008 01:10:04 PM
83 JOSH_Imposter WomTeamAssassin 08/28/2008 06:13:06 PM
84 king_killa_5 Chuck 08/24/2008 07:21:20 PM
85 king_killa_5_Imposte Chuck 08/26/2008 08:25:40 PM
86 LA_Hobo Raphael 08/19/2008 07:10:51 PM
87 lollercoasters! Bender 08/09/2008 08:00:57 PM
88 Lt.Crumpet Blood_Eagle_Light_Male 08/29/2008 11:10:56 AM
89 Meowalisk nali 08/28/2008 01:56:24 AM
90 Miss_Kitty Catwoman 08/16/2008 01:14:05 AM
91 MMKirby FireDrake 08/19/2008 06:44:44 PM
92 Mr.BlOb CloneTrooper(g) 08/25/2008 08:00:17 PM
93 Nali OuBoudah 08/26/2008 09:44:16 PM
94 -=Novocaine=- NovocaineV3 08/08/2008 02:54:36 PM
95 Nurse_Kitty Catwoman 08/09/2008 03:21:07 AM
96 O_oBREAKDOWN!HA! JohnnyMagnum 08/16/2008 01:20:17 AM
97 PAINFULL General_Grievous 08/27/2008 11:57:20 PM
98 PAINKILL_v3.4 Chaos_SpaceMarine 08/28/2008 09:29:18 AM
99 panther2 Ouglor 08/19/2008 08:50:31 PM
100 panther_Eng Ouglor 08/25/2008 10:10:34 PM
101 panther_MM Ouglor 08/24/2008 04:19:29 PM
102 P?R?D?XX Neo 08/29/2008 10:58:02 PM
103 psy?Bo$$ ther 08/21/2008 04:01:09 PM
104 R4PT0R Quagmire 08/14/2008 11:38:12 PM
105 Ratar_Killer Arctekkon 08/28/2008 10:54:04 PM
106 Ratar_of_Gilead Arctekkon 08/23/2008 11:57:05 PM
107 RE-Done Neo 08/29/2008 10:52:46 PM
108 ROADBLOCK RC-1162a 08/29/2008 05:23:39 AM
109 Roadkill Gargoyle 08/29/2008 04:59:14 PM
110 ROADKILL_v3.4 Chrome_Bender 08/29/2008 12:16:49 AM
111 Roadrash Gargoyle 08/11/2008 05:35:45 PM
112 Roadwork Gargoyle 08/28/2008 04:49:55 PM
113 roy stickly 08/28/2008 08:18:13 PM
114 Scorpio_Mx BlueVash 08/29/2008 12:58:14 AM
115 SHADO MynocGhost 08/21/2008 11:17:48 AM
116 Shikamaru639 CloneTrooper(y) 08/10/2008 11:08:02 PM
117 Shinry? Chaos_SpaceMarine 08/29/2008 03:46:59 PM
118 ShootnBlocks Blade 08/11/2008 08:49:53 AM
119 Shootnkill Blade 08/13/2008 05:15:14 PM
120 siege2 LiandriTrooperBlackBlackVisor 08/23/2008 06:07:03 PM
121 siege3 LiandriTrooperBlackBlackVisor 08/18/2008 12:46:28 PM
122 siege4 LiandriTrooperBlackBlackVisor 08/22/2008 08:39:31 PM
123 siege LiandriTrooperBlackBlackVisor 08/27/2008 08:01:29 PM
124 Skuzulbut Dr_Zoidberg 08/09/2008 10:59:03 AM
125 Skwisgaar Blood_Eagle_Light_Male 08/29/2008 11:36:30 AM
126 Skyliner NewDua1ity 08/29/2008 10:47:26 PM
127 Skylines NewDua1ity 08/26/2008 05:34:48 PM
128 Spino123 Deinonychus 08/18/2008 12:42:33 AM
129 Splicer Link 08/29/2008 10:20:48 PM
130 Stormtrooper StormTrooper 08/28/2008 08:44:22 PM
131 Swamptrooper SwampTrooper 08/29/2008 10:09:43 AM
132 TechNic The Old One 08/18/2008 02:56:28 AM
133 TechWarrior1 Quagmire 08/29/2008 03:10:56 PM
134 TechWarrior Quagmire 08/29/2008 04:54:05 PM
135 Thagen Lucifer 08/26/2008 09:33:47 PM
136 TheElectrician Boid 08/29/2008 06:00:29 PM
137 The_Hobonator Raphael 08/15/2008 05:21:22 PM
138 The_jams13MD BenderBioGreen 08/19/2008 08:50:32 PM
139 TON80_MD AVP2FemaleAlienDrone 08/28/2008 10:15:27 AM
140 Unclemonster Spawn_Comic_Book 08/29/2008 10:58:01 PM
141 =Vaelen=LM Droid2k4 08/20/2008 09:41:48 AM
142 WARRIORKILLER ManTeamAssassin 08/07/2008 06:08:00 PM
143 Wayno_EIT BenderBlue 08/29/2008 10:58:00 PM
144 Wayno_Rx BenderBioGreen 08/28/2008 12:13:07 AM
145 [WMD]Hobo_Joe Raphael 08/18/2008 08:42:14 PM
146 Xdog ProxyKing 08/18/2008 04:49:14 PM
147 xdog ProxyKing 08/18/2008 07:35:10 PM
148 yopomo Lucifer 08/17/2008 07:34:44 PM
149 zap_eng Priest 08/28/2008 08:12:55 PM
150 ZOGineer Ashur 08/29/2008 08:42:44 AM
151 ZOG-MD Ashur 08/28/2008 07:31:17 PM
|
|
 |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 08/06/2008 15:29:37
|
Trooper
Godlike
![[Avatar]](/dcforum/images/avatar/b706835de79a2b4e80506f582af3676a.jpg)
Joined: 05/17/2008 15:32:06
Messages: 367
Location: t3h interwebz
Offline
|
very nice. is there a way to extract each individual skin and make a skin pack from that?
|
|
 |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 08/12/2008 04:47:32
|
dommi
Killing Spree
Joined: 11/26/2007 21:48:31
Messages: 59
Offline
|
I just wrote to the keybind thread on this very topic... what did you do to get this list?
|
My personalities
dommi-samuri: weapon master
dommi-chan: AM
dommi-sama: Engineer
dommi-sensei: medic |
|
 |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 08/12/2008 12:42:41
|
greg11
Wicked Sick!
Joined: 02/10/2008 20:00:40
Messages: 526
Location: Hood River, OR
Offline
|
dommi wrote:
I just wrote to the keybind thread on this very topic... what did you do to get this list?
it is a linux bash script ran on one of my servers
I am working to convert it to python before i start adding more features to it.
|
|
 |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 08/12/2008 14:45:41
|
dommi
Killing Spree
Joined: 11/26/2007 21:48:31
Messages: 59
Offline
|
ah, ok.
does it only work on servers or linux?
|
My personalities
dommi-samuri: weapon master
dommi-chan: AM
dommi-sama: Engineer
dommi-sensei: medic |
|
 |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 08/12/2008 19:00:47
|
greg11
Wicked Sick!
Joined: 02/10/2008 20:00:40
Messages: 526
Location: Hood River, OR
Offline
|
right now yes, but you could use a linux emulator if you want to go through the trouble.
What is it that you are looking for?
|
|
 |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 08/15/2008 23:03:46
|
greg11
Wicked Sick!
Joined: 02/10/2008 20:00:40
Messages: 526
Location: Hood River, OR
Offline
|
Updated the list and my script to remove some of the standard skins.
|
|
 |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 08/16/2008 21:07:50
|
dommi
Killing Spree
Joined: 11/26/2007 21:48:31
Messages: 59
Offline
|
I was just wondering if I could run it on my computer, but I don't have linux on my computer
|
My personalities
dommi-samuri: weapon master
dommi-chan: AM
dommi-sama: Engineer
dommi-sensei: medic |
|
 |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 08/16/2008 21:43:58
|
greg11
Wicked Sick!
Joined: 02/10/2008 20:00:40
Messages: 526
Location: Hood River, OR
Offline
|
dommi wrote:
I was just wondering if I could run it on my computer, but I don't have linux on my computer
How are you planning to use it?
You would need a bash emulator: cygwin or win-bash
Code:
#!/bin/bash
# This is a query script for tracking players on Unreal Tournamet 2004 Servers.
# Usage: scriptname ip gameport
# Defaults to localhost and port 7777
DATAFILE="UT_CHAR.csv"
RUNFILE="UT_CHAR.run"
DELAY=600
NORMIFS=$IFS
if [ $# = 2 ]; then
ip=$1
port=$2
else
#Default IP PORT
ip=127.0.0.1
port=7777
fi
query()
{
#echo -n Querying...
#Get Information
string=$(echo -n "\\players\\" | nc -u $ip $(($port+10)) -w 1)
echo -n .
}
parse()
{
#Parse string
lastindex=$( echo "$string"|grep -o '\\'|wc -l )
for (( index=0 ; index < lastindex ; index++ ))
do
STARRAY[${index}]=$( echo "${string}"|cut -d '\' -f $(( ${index}+2 )) )
done
#Echo Check STARRAY
for (( index=0 ; index < lastindex ; index+=2 ))
do
CATEGORY="${STARRAY[${index}]}"
VALUE="${STARRAY[$(( ${index}+1 ))]}"
#echo $CATEGORY $VALUE
case $CATEGORY in
"player_"[0-99])
PLAYERS[${CATEGORY#player_}]=${VALUE};;
"character_"[0-99])
CHARACTERS[${CATEGORY#character_}]=${VALUE};;
esac
done
}
display_players()
{
for P in $( seq 0 $(( ${#PLAYERS[@]}-1 )) )
do
printf "%s\t%s\t%s\n" ${P} ${PLAYERS[${P}]} ${CHARACTERS[${P}]}
# echo $P ${PLAYERS[${P}]} ${CHARACTERS[${P}]}
done
}
append_player_data()
{
#PLAYERDATA[]
#CHARDATA[]
#TIMEDATA[]
DATASIZE=${#PLAYERDATA[@]}
for P in $( seq 0 $(( ${#PLAYERS[@]}-1 )) )
do
#echo DATASIZE=$DATASIZE
# echo $P ${PLAYERS[${P}]}
for (( I=0 ; I < DATASIZE ; I++ ))
do
#echo "$I ${PLAYERDATA[${I}]}"
if [ "${PLAYERDATA[${I}]}" = "${PLAYERS[${P}]}" ]
then
# echo FOUND "${PLAYERS[${P}]}"
CHARDATA[${I}]="${CHARACTERS[${P}]}"
TIMEDATA[${I}]="$(date +"%x %X")"
continue 2
fi
done
#add new entry
echo adding "${PLAYERS[${P}]}"
PLAYERDATA[${DATASIZE}]="${PLAYERS[${P}]}"
CHARDATA[${DATASIZE}]="${CHARACTERS[${P}]}"
TIMEDATA[${DATASIZE}]="$(date +"%x %X")"
let DATASIZE++
done
}
display_player_data()
{
DATASIZE=${#PLAYERDATA[@]}
for (( I=0 ; I < DATASIZE ; I++ ))
do
printf "%s %30s\t%20s\t%15s\n" ${I} "${PLAYERDATA[${I}]}" "${CHARDATA[${I}]}" "${TIMEDATA[${I}]}"
done
}
read_datafile()
{
IFS=,
I=0
while read PLAYER CHARACTER TIME
do
PLAYERDATA[${I}]=$(echo ${PLAYER}|sed 's/"//g')
CHARDATA[${I}]=$(echo ${CHARACTER}|sed 's/"//g')
TIMEDATA[${I}]=$(echo ${TIME}|sed 's/"//g')
#echo === "${PLAYERDATA[${I}]} ${CHARDATA[${I}]} ${TIMEDATA[${I}]}"
let I++
done<${DATAFILE}
IFS=$NORMIFS
echo echoing
echo ${PLAYERDATA[2]}
}
write_datafile()
{
[ -f ${DATAFILE} ] && rm ${DATAFILE}
DATASIZE=${#PLAYERDATA[@]}
for (( I=0 ; I < DATASIZE ; I++ ))
do
printf "\"%s\",\"%s\",\"%s\"\n" "${PLAYERDATA[${I}]}" "${CHARDATA[${I}]}" "${TIMEDATA[${I}]}" >>${DATAFILE}
done
}
touch $RUNFILE
if [ -f $DATAFILE ];then
echo Reading existing Datafile
read_datafile
display_player_data
echo Done
fi
LOOPCOUNT=0
while [ -f "${RUNFILE}" ]
do
echo =================================================
echo -n Querying...
query
echo -n .
#Check if it's Online
while [ "$string" = "" ]
do
echo -n "X"
sleep 120
query
done
echo -n Parsing...
parse
echo .
#display_players
append_player_data
display_player_data
sleep $DELAY
let LOOPCOUNT++
if [ $LOOPCOUNT -gt 5 ];then
write_datafile
LOOPCOUNT=0
fi
done
echo Runfile removed...initiating escape sequence...
echo -n Querying...
query
#Check if it's Online or Not permitting
while [ "$string" = "" ]
do
echo -n "X"
sleep 10
query
done
echo Parsing...
parse
append_player_data
display_player_data
echo Saving Data...
write_datafile
echo Exiting
exit
It really isn't very user friendly at the moment, and I can't guarantee that it will work since I don't use any emulators at the moment.
Sorry for the messy code...it was written pretty quickly.
The output file is a csv file so you can import it into a spreadsheet.
It is also designed to run continuously. To stop it delete the run file it creates...that will cause it to save and exit.
|
|
 |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 08/30/2008 00:09:31
|
greg11
Wicked Sick!
Joined: 02/10/2008 20:00:40
Messages: 526
Location: Hood River, OR
Offline
|
I just rewrote the script.
Made it so I can filter out the number players and the characters that come with UT.
I am still working on the unicode issue, but I can never test it because the unicode players only come on when I am not working on it
You people should play more often
|
|
 |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 03/03/2009 22:38:00
|
greg11
Wicked Sick!
Joined: 02/10/2008 20:00:40
Messages: 526
Location: Hood River, OR
Offline
|
I started rewriting the skin tracker from scratch in python.
I am fairly new to python, and this is my first big project in it.
Current status:
It produces the attached screenshot.
It doesn't actually save any data yet.
My Goals:
Automatically track each player's highest score along with mapname and time it occured.
Track skins for making skin packs for the skin manager
Track total playtime for skin manager.
My bugs:
My major issue is that I don't know how to handle some of the unicode data that comes in...manly because it happens so rarely that I can't test for it.
The other issue is that when a player logs off, the last player in the list is duplicated. Again this is difficult to debug at the moment, because when I work on it, people rarely log off. I have a hack in place to check for dup names, but I don't like using it. I don't know if the dup is coming from the raw data or a flaw with the way I am using the dictionary list (anyone know the best way to purge a dictionary? I am using querydata={} inside a function )
The other things I have to address are to handle non-invasion gametypes, and handle player count when bots are involved (never use numplayers to iterate a loop!)
|
Filename |
UT_Tracker.jpg |
Download
|
Description |
|
Filesize |
60 Kbytes
|
Downloaded: |
291 time(s) |
|
|
 |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 03/03/2009 22:45:52
|
Trooper
Godlike
![[Avatar]](/dcforum/images/avatar/b706835de79a2b4e80506f582af3676a.jpg)
Joined: 05/17/2008 15:32:06
Messages: 367
Location: t3h interwebz
Offline
|
I have an idea of what could be causing the log off dup issue. my guess is that you have an array with X slots allocated. when someone logs off, there are X-1 players but it has not changed the allocation to X-1, so it is still X. the list updates but the last player hasn't had anything overwrite it.
|
|
 |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 03/03/2009 22:46:30
|
greg11
Wicked Sick!
Joined: 02/10/2008 20:00:40
Messages: 526
Location: Hood River, OR
Offline
|
Since it can track number of monsters and the wavenumbers.
There might be other stats that might be interesting to look at like average wave times for each map. Or the Highest player and team score for each.
This info might be handy to figure out what maps take forever to play, or maps that might have exploits.
|
|
 |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 03/03/2009 22:55:14
|
greg11
Wicked Sick!
Joined: 02/10/2008 20:00:40
Messages: 526
Location: Hood River, OR
Offline
|
Trooper wrote:
I have an idea of what could be causing the log off dup issue. my guess is that you have an array with X slots allocated. when someone logs off, there are X-1 players but it has not changed the allocation to X-1, so it is still X. the list updates but the last player hasn't had anything overwrite it.
That is what I was thinking. The function that converts the udp data into the dictionary is supposed to erase the dictionary. It drops the last two fields of the udp data (queryid, and final) so the last field to be added to the dictionary is the last player.
I suspect it has something to do with the way dictionaries are handled in python. It looks like the variable just stores a pointer to the dictionary array. What I could do is just delete all player entries prior to updating. Or I could get the last player entry from the udp data and remove anything past that...I don't think either way will generate any real performance issues.
|
|
 |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 03/03/2009 23:04:01
|
Trooper
Godlike
![[Avatar]](/dcforum/images/avatar/b706835de79a2b4e80506f582af3676a.jpg)
Joined: 05/17/2008 15:32:06
Messages: 367
Location: t3h interwebz
Offline
|
I only know C++ so I will write my example in the cpp equivelant:
if(playerQuit=true)
{
dropVar++;
}
if(playerJoin=true)
{
dropVar--;
}
// at the end, drop the last dropVar entries. just int the dropVar at 2 when the map starts
|
|
 |
|