ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/MSVC/Flatline_BSL.c
(Generate patch)

Comparing Daodan/MSVC/Flatline_BSL.c (file contents):
Revision 568 by gumby, Wed Jun 30 04:25:00 2010 UTC vs.
Revision 569 by gumby, Wed Jul 14 07:35:40 2010 UTC

# Line 113 | Line 113 | uint16_t ONICALL status(sl_callinfo* cal
113          else{}
114          return 0;
115   }
116 +
117   uint16_t ONICALL addfake(sl_callinfo* callinfo, uint32_t numargs, sl_arg args[], int* dontuse1, int* dontuse2, sl_arg* ret)
118   {
119          player_info * info;
# Line 120 | Line 121 | info = FLrServer_AddPlayer( 0, "Fake", 0
121   info->Actions1 = Action_Forward;
122   return 0;
123   }
124 +
125 + uint16_t ONICALL list_players(sl_callinfo* callinfo, uint32_t numargs, sl_arg args[], int* dontuse1, int* dontuse2, sl_arg* ret)
126 + {
127 +        int i;
128 +        for(i = 0; i++; i < MAX_PLAYERS)
129 +        {
130 +                if(PlayerList[i])
131 +                {
132 +                        DDrConsole_PrintF("%i %i | %s", i, PlayerList[i]->spawnnumber, PlayerList[i]->name);
133 +                }
134 +        }
135 + return 0;
136 + }
137 +
138 +
139   void SLrFlatline_Initialize() {
140          
141          DDrPatch_MakeCall(0x004FA88B, FLrInput_Update_Keys);

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)