| 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); |
| 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 |
> |
} |