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 573 by gumby, Thu Sep 9 09:27:04 2010 UTC vs.
Revision 574 by gumby, Mon Oct 11 08:22:59 2010 UTC

# Line 193 | Line 193 | uint16_t ONICALL list_players(sl_callinf
193          }
194   return 0;
195   }
196 + uint16_t ONICALL con(sl_callinfo* callinfo, uint32_t numargs, sl_arg args[], int* dontuse1, int* dontuse2, sl_arg* ret)
197 + {
198 +        OBJrConsole_OnActivate( OBJrConsole_GetByID(args[0].value_int32), PlayerList[0]->Chr );
199 +        return 0;
200 + }
201  
202 <
202 >                
203   void SLrFlatline_Initialize() {
204          
205          DDrPatch_MakeCall(0x004FA88B, FLrInput_Update_Keys);
# Line 208 | Line 213 | void SLrFlatline_Initialize() {
213          SLrGlobalVariable_Register_String("country", "Your Multiplayer country", player_name);
214          SLrScript_Command_Register_ReturnType("addbot","adds a fake client", "", sl_void, addfake);
215          SLrScript_Command_Register_Void("kick", "Kicks a client from the server", "clientnum:int", kick);
216 +        SLrScript_Command_Register_Void("con", "Activates a console", "con:int", con);
217          //SLrScript_Command_Register_ReturnType("ai2_spawn","creates and starts an AI from a character object","ai_name:string [force_spawn:string{\"force\"} | ]", sl_void, spawnAI);
218   }

Diff Legend

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