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 583 by gumby, Sat Jan 22 16:28:52 2011 UTC vs.
Revision 586 by gumby, Wed Feb 2 08:17:19 2011 UTC

# Line 215 | Line 215 | uint16_t ONICALL con(sl_callinfo* callin
215          return 0;
216   }
217  
218 <
218 > uint16_t tele(sl_callinfo* callinfo, uint32_t numargs, sl_arg args[], int* dontuse1, int* dontuse2, sl_arg* ret)
219 > {
220 >        ActiveCharacter *AC = ONrGetActiveCharacter(ONgGameState->PlayerCharacter);
221 > //      AC->PhyContext->Position = AC->AimTarget;
222 >        AC->PhyContext->Position.X += AC->AimVector.X;
223 >        AC->PhyContext->Position.Y += AC->AimVector.Y;
224 >        AC->PhyContext->Position.Z += AC->AimVector.Z;
225 >        return 0;
226 > }
227   void SLrFlatline_Initialize()
228   {
229  
230          DDrPatch_MakeCall(0x004FA88B, FLrInput_Update_Keys);
231          FLrInput_Update_Keys();
232          SLrGlobalVariable_Register_Int32("skip", "skips", &(((GameState*)ONgGameState)->field_40) );
233 +        SLrScript_Command_Register_Void("tele","teleports", "", tele);
234          SLrScript_Command_Register_ReturnType("connect","Connects to a server", "ip:string", sl_void, connect_to_server);
235          SLrScript_Command_Register_Void("host","Starts a server", "", start_server);
236          SLrScript_Command_Register_Void("msg","Sends a message", "", send_message);
# Line 232 | Line 241 | void SLrFlatline_Initialize()
241          SLrScript_Command_Register_Void("kick", "Kicks a client from the server", "clientnum:int", kick);
242          SLrScript_Command_Register_Void("con", "Activates a console", "con:int", con);
243          SLrScript_Command_Register_Void("ping", "pong!", "", ping);
244 < }
244 > }

Diff Legend

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