[TF2] Simple Ghost
1 Attachment(s)
TF2 Simple Ghost http://wiki.teamfortress.com/w/image...20110423132625 What is it? It's an unused entity called simple_bot that i made to mimic the TF2 ghost as best as i could Can i configure it in any way? Of cource you can! BUT BE NOTED THE GHOST WILL NOT MOVE IF YOUR MAP DOESN'T HAVE A .NAV MESH! Commands: sm_simpleghost : Spawns a simple_ghost on top of you [Default acces: ROOT] sm_killghost : Kills all the simple_ghosts on the map [Default acces: ROOT] Cvars: sm_ghost_minvistime (default: 5.0) Minimum duration to stay visible sm_ghost_maxvistime (default: 10.0) Maximum duration to stay visible sm_ghost_mininvistime (default: 60.0) Minimum duration to stay invisible sm_ghost_maxinvistime (default: 120.0) Maximum duration to stay invisible sm_ghost_stunduration (default: 5.0) Duration of the 'BOO!' condition on client sm_ghost_checkdelay (default: 0.1) How often to check for nearby clients to Spook sm_ghost_checkdistance (default: 240.0) How far away to stun clients Changelog: 1.0 Initial Release 1.1 Fixed unescessary looping 1.2 Fixed removing other simple_bots than the ones that were spawned by this plugin 1.3 Sentries should no longer target the ghost Credits to Leonardo for some of the code i use in this plugin :3 |
Re: [TF2] Simple Ghost
Command_KillBot would kill any simple_bots in the map. Could cause issues.
Also the ghost think is quite redundant. You have a think for each ghost, but within that think instead of finding every one around the 1 ghost and scare the players it find everyone around all of the simple_bots and scares them. so if there was 5 active ghosts (visible) and 32 active players all alive and playing it would do: FindByClassname 5 time per think and would check the distance away from a ghost and a player 5*32 times, that's alot of unneeded math. If my math is right anyways.. |
Re: [TF2] Simple Ghost
Quote:
Not so sure about how to fix not removing other simple_bot's |
Re: [TF2] Simple Ghost
Quote:
I THINK THIS WOULD WORK: or another simple, but still cost the same amount of processing time just change the class name after the entity is created: PHP Code:
ADT Example would be: PHP Code:
|
Re: [TF2] Simple Ghost
Hmm, the sentries appear to be able to attack the ghosts, both RED and BLU sentries.
Wouldn't it be worth adding FL_NOTARGET flag onto the ghosts? Just an idea, perhaps make it a CVAR or something. |
Re: [TF2] Simple Ghost
Quote:
|
All times are GMT -4. The time now is 19:55. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.