Raised This Month: $ Target: $400
 0% 

Creating "fake" players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BlueRaja
Senior Member
Join Date: Nov 2004
Old 01-09-2005 , 11:14   Creating "fake" players
Reply With Quote #1

This topic regards being able to see the other team on the radar:
As I've mentioned before, you can only use the Radar message (in CS, at least) to show the origin of a player if cs_get_user_team(id)==cs_get_user_team(enemyi d), and both players are living. However...
I've seen plugins where fake spectators are created to fill in slots. I haven't had time to look at these to see how it's done, but I was wondering if it would be possible to internally "fake" that these fake players are on a team (without having them show up on the scoreboard). That is, trick the server into thinking the fake players are real players, alive and on a team, just without..uh..models/guns/an origin/anything else.
That way, I could create a bunch of fake players and set so many up on each team, and send the id of the FAKE players using the Radar message -- then, players would be able to authentically see the enemy on their radar..although both enemies and friendlies would be the same color on the radar...maybe I'd set it up as a button they could bind, or something. Also, I'd have to think of a way of "killing" all the fake players, if necessary, whenever all the real players are killed; otherwise, the server would think that there are still players alive on a team, when in reality there aren't. Finally, I believe this would only work on 16-player servers, since there can only be 32 players, real or fake, to a server, and I'd need one fake player to every real player.
Although it would have its limitations, so does my last radar plugin.
Is there any way to implement this? O_o
BlueRaja is offline
Send a message via AIM to BlueRaja Send a message via MSN to BlueRaja
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 01-09-2005 , 12:52  
Reply With Quote #2

How about doing something like creating a fake player that's invisible with no clip? Or even better if you could fake a hostie it might follow them around for you .
__________________
twistedeuphoria is offline
BlueRaja
Senior Member
Join Date: Nov 2004
Old 01-09-2005 , 15:35  
Reply With Quote #3

........
ok, anyways...
can anyone offer any *real* help? O_o
BlueRaja is offline
Send a message via AIM to BlueRaja Send a message via MSN to BlueRaja
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-09-2005 , 16:15  
Reply With Quote #4

It might work, but I don't know if you could stop them from being on the scoreboard.

From fakemeta_const.inc:

Code:
EngFunc_CreateFakeClient,   // edict)       (const char *netname);  // returns NULL if fake client can't be created

Although I haven't used the engfunc() function before, I believe it would work like this:

Code:
new fake_player_id = engfunc(EngFunc_CreateFakeClient,"Name of player here");
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 01-10-2005 , 08:17  
Reply With Quote #5

then just set the origin to be like 96 units above the player where you want the radar to appear.
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-10-2005 , 15:20  
Reply With Quote #6

You will also want them to be invisible, non-solid, and invincible.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 01-10-2005 , 16:43  
Reply With Quote #7

Or just set them to noclip, since thats all of the above.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 01-10-2005 , 17:59  
Reply With Quote #8

noclip = invincible?

...godmode.
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
mindping
New Member
Join Date: Feb 2005
Old 02-21-2005 , 12:00  
Reply With Quote #9

noclip = you cant walk thru it

not godmode
__________________
John w Switzer
mindping is offline
Send a message via AIM to mindping
BlueRaja
Senior Member
Join Date: Nov 2004
Old 02-21-2005 , 16:41  
Reply With Quote #10

Wow, that's exactly what he just said.
__________________
STEPS IN TROUBLESHOOTING <insert anything here>:
1. Narrow down the problem to a specific condition or conditions.
2. Fix it.
BlueRaja is offline
Send a message via AIM to BlueRaja Send a message via MSN to BlueRaja
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 19:17.


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