Raised This Month: $51 Target: $400
 12% 

Player dummies


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 07-26-2015 , 17:09   Player dummies
Reply With Quote #1

Ciao guys,

I need to hide some players with SetTransmit and replace them with dummies (acting exactly like the hidden players).
Now I have it done with prop_dynamic_override and it works fine, except of animations...
  1. Should I use bots? Can I spawn bot with entity index higher than MaxClients?
  2. Should I stay with prop? How can I properly set animations to that prop and how to solve weapons.
  3. Is there a better way, how to do that?
I know I asked a lot, but I hope, you will help me out.
KissLick is offline
Benoist3012
Veteran Member
Join Date: Mar 2014
Location: CWave::ForceFinish()
Old 07-27-2015 , 09:32   Re: Player dummies
Reply With Quote #2

Quote:
Originally Posted by KissLick View Post
Ciao guys,

I need to hide some players with SetTransmit and replace them with dummies (acting exactly like the hidden players).
Now I have it done with prop_dynamic_override and it works fine, except of animations...
  1. Should I use bots? Can I spawn bot with entity index higher than MaxClients?
  2. Should I stay with prop? How can I properly set animations to that prop and how to solve weapons.
  3. Is there a better way, how to do that?
I know I asked a lot, but I hope, you will help me out.
1) No you cant tf2 is limited to 33 slot if you try more you will make your server crash and if it's for cs:go no it's also limited to 64 or 65
2)The imput SetAnimation can work
3)Actually no and attach weapons to a prop_dynamic can work but not like you want
__________________
Benoist3012 is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 07-27-2015 , 09:34   Re: Player dummies
Reply With Quote #3

actually you might be able to attach weapons if you attach them to attachment points on the player model on the prop via SetParentAttachment


however it may be that TF2 does it some other way and that won't work.
__________________
Chdata is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 07-27-2015 , 10:03   Re: Player dummies
Reply With Quote #4

And is there any way, how to hook player animations and apply them to that prop_dynamic?
KissLick is offline
Miu
Veteran Member
Join Date: Nov 2013
Old 07-27-2015 , 11:31   Re: Player dummies
Reply With Quote #5

why not just make a normal bot/fake client and hide it from scoreboard?
Miu is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 07-27-2015 , 11:56   Re: Player dummies
Reply With Quote #6

Quote:
Originally Posted by Miu View Post
why not just make a normal bot/fake client and hide it from scoreboard?
But can I create bot with entity index higher then MaxClients?
KissLick is offline
Miu
Veteran Member
Join Date: Nov 2013
Old 07-27-2015 , 12:08   Re: Player dummies
Reply With Quote #7

No, why would you need to?
Miu is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 07-27-2015 , 12:40   Re: Player dummies
Reply With Quote #8

I need to create dummy entity for every player in game. So if there is more than 32 players I would be be creating bots over the limit.
KissLick is offline
psychonic

BAFFLED
Join Date: May 2008
Old 07-27-2015 , 12:43   Re: Player dummies
Reply With Quote #9

What you want are NPCs, but i'm not sure how far you can go with them from just the server side. An extension using CEntity would be the most logical starting point for it.

Last edited by psychonic; 07-27-2015 at 12:44.
psychonic is offline
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 07-27-2015 , 12:53   Re: Player dummies
Reply With Quote #10

You can actually create a new entity type with the CEntity extension and make it work as a player entity. But you will also have to rewrite a huge part of server functions.
You can use hoostage/npc entity as a base. Then just redefine all the limits and reattach every player from CCSPlayer to this entity. It should work as CSS NPC mod, but every npc will be under control of a certain player.

Have a look at this extension https://forums.alliedmods.net/showthread.php?t=127034

raydan has implemented such kind of thing, but he doesn't want to share it, we can only see how it works on his NPC and lobby servers. Here is the old thread https://forums.alliedmods.net/showthread.php?t=161331

Last edited by kadet.89; 07-27-2015 at 13:02.
kadet.89 is offline
Send a message via Skype™ to kadet.89
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode