View Single Post
Author Message
Pelipoika
Veteran Member
Join Date: May 2012
Location: Inside
Old 05-06-2014 , 15:47   [TF2] Simple Ghost
Reply With Quote #1

TF2 Simple Ghost



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
Attached Files
File Type: sp Get Plugin or Get Source (simple_ghost.sp - 1398 views - 11.8 KB)
__________________

Last edited by Pelipoika; 07-07-2014 at 18:26.
Pelipoika is offline