Author Topic: Is there anyway to force a player to turnleft();/turnright();?  (Read 3327 times)

Really wondering because I know you can the client way, but is there anyway I can make a specific playertype continuously spin?

no. you might be able to like, rotate the player object and just make a loop of that

Really wondering because I know you can the client way, but is there anyway I can make a specific playertype continuously spin?

if its a specific playertype, you can use an animation for that
if you want to do it on all playertypes, you can only with client addons

Unfortunately not because that command is only client-sided and you can't make a client execute a client-sided command by the server.

Also that is the same reason why modders can't make custom GUI to servers.


Also that is the same reason why modders can't make custom GUI to servers.

that sentence completely false. making custom guis work for gamemodes is really easy and i did it on my bounty hunter gamemode.

Unfortunately not because that command is only client-sided and you can't make a client execute a client-sided command by the server.

this only stays true as long as you arent using client addons.
if you mean via a client addon, you can do:
Code: [Select]
commandToClient(%cl, 'function', %arg1, %arg2, %argN);only works for clientCmd functions
example:
Code: [Select]
commandToClient(findClientByName("Zelwin"), 'SetBuildingEnabled', 1);clientCmdSetBuildingEnabled(); is a default function, so it'd work on anyone
though,
Code: [Select]
commandToClient(findClientByName("Zelwin"), 'OpenBHHud'); would work only on me since atm i'm the only one that has the bounty hunter client addon

doesn't the bear 360 calories spin you

doesn't the bear 360 calories spin you

it does exactly what phantos said- it rotates the player's camera resulting in their player to spin but that's all.

turnleft/turnright(); have much smoother animations than the bear 360 calories though, which is why that would be a better choice
« Last Edit: December 28, 2017, 12:15:41 PM by adel »

There needs to be a client mod that allows the server to detect movement/move the player's aim that's distributed with glass or something

There needs to be a client mod that allows the server to detect movement/move the player's aim that's distributed with glass or something

There's a DLL for that

Also that is the same reason why modders can't make custom GUI to servers.
that sentence completely false. making custom guis work for gamemodes is really easy and i did it on my bounty hunter gamemode.
maybe you should explain how to make a custom GUI that clients can see without a client addon

Unfortunately not because that command is only client-sided and you can't make a client execute a client-sided command by the server.
this only stays true as long as you arent using client addons.
the title says "force", which you can't do if you're requiring a client addon

There's a DLL for that

Tbh I've never actually been able to get this to work and it usually ends up crashing my server. Is there a tutorial for this somewhere?

EDIT: Also are you saying that movehandler is capable of moving the player's aim up and down?
« Last Edit: December 28, 2017, 06:16:41 PM by Rally »

There needs to be a client mod that allows the server to detect movement/move the player's aim that's distributed with glass or something
I would just disable it because I don't want servers screwing with my movement lmao

Tbh I've never actually been able to get this to work and it usually ends up crashing my server. Is there a tutorial for this somewhere?

EDIT: Also are you saying that movehandler is capable of moving the player's aim up and down?
Yeah. Anything that manipulates the player's Move packets can force a client to look up, down, left, right, move left, etc, etc. If you sit between the server and the client, you can do anything, really... Just make sure that you clamp between 0 and 2PI (basically, keep it as radians) for modifying their look stuff, and you'll be all set.

Yeah. Anything that manipulates the player's Move packets can force a client to look up, down, left, right, move left, etc, etc. If you sit between the server and the client, you can do anything, really... Just make sure that you clamp between 0 and 2PI (basically, keep it as radians) for modifying their look stuff, and you'll be all set.

I got the latest version of movehandler set up earlier today, and I can definitely forget with the look inputs for bots, but I'm not having any luck with doing it on actual players. This post gives me the impression that using MoveHandler.dll I could potentially adjust where the player is aiming, but I'm not having any luck with it, is movehandler only supposed to be able to read player input or can it set it as well?

Use the return output to set the movement