View Single Post
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 01-23-2017 , 12:09   Re: Creating a "clone" of a player
Reply With Quote #7

Spawn a bot and translate cmd's from a valid player to it.
Quote:
tv_enable "1"
tv_name "Bot"
These CV create a dummy spectator bot. The bot doesn't require navigations and does nothing after forced spawn, just standing on the ground and waiting for somebody to kill him. Though you can easily manipulate him with the puppet mod: https://forums.alliedmods.net/showthread.php?t=132773 (at least it was possible in cs:s a few years ago) You can also use hostages the same way, only they are not so pliable.
If you want it to work your way, you may use CEntity extension and override the animation part of the CCPlayer class. This extension has such implementation for tf2: https://forums.alliedmods.net/showthread.php?t=127034 and this part of the extension still does its work, so you can just copy and past it, though I only tested it with CS:S
There is an extension NPC for CS:S: https://forums.alliedmods.net/showthread.php?t=161331
It only runs under CSS v73, but you may find some useful stuff there.

Last edited by kadet.89; 01-23-2017 at 13:57.
kadet.89 is offline
Send a message via Skype™ to kadet.89