Raised This Month: $32 Target: $400
 8% 

[EXTENSION] TeleportCheck 1.0


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Afronanny
Veteran Member
Join Date: Aug 2009
Old 09-27-2010 , 18:40   [EXTENSION] TeleportCheck 1.0
Reply With Quote #1

TeleportCheck 1.0
This extension allows plugins to control whether or not a player is allowed to use a teleporter. The reason this was created was to disallow scouts from taking teleporters.

SourcePawn Forward:
PHP Code:
forward bool:OnTeleportCheck(clientbool:actual); 
Return true to allow the client to teleport, false to disallow the client from teleporting, or actual to use the game's decision. Note that returning true will allow the client to teleport even if the teleporter belongs to the opposing team. In a future release, the teleporter's team will be added to the forward.

Todo:

Quote:
* Give more information about the teleporter, such as its team or owner, even its ent index
Example plugin is attached, and disallows scouts from teleporting. Convar is sm_teleportcheck_enabled

Download TeleportCheck here.
Source code is available here.

Credits:
-Me (everything)
-This thread
Attached Files
File Type: sp Get Plugin or Get Source (scoutdontteleport.sp - 976 views - 1.0 KB)

Last edited by Afronanny; 09-27-2010 at 19:33.
Afronanny is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 09-28-2010 , 00:26   Re: [EXTENSION] TeleportCheck 1.0
Reply With Quote #2

I cannot wait to see servers install this, thanks Afronanny!
KyleS is offline
DontWannaName
Veteran Member
Join Date: Jun 2007
Location: VALVe Land, WA
Old 10-01-2010 , 00:54   Re: [EXTENSION] TeleportCheck 1.0
Reply With Quote #3

Iv always wanted this but like with allowing engis to build in spawn, its always been in the brink of major game altering.
__________________

DontWannaName is offline
casvdry
Member
Join Date: Mar 2008
Old 10-25-2010 , 08:40   Re: [EXTENSION] TeleportCheck 1.0
Reply With Quote #4

What we need is a teleporter that is smart enough to prioritize. If two targets step onto it at once, teleport the slower class.
casvdry is offline
SpideyFusion
SourceMod Donor
Join Date: Oct 2010
Old 10-31-2010 , 09:28   Re: [EXTENSION] TeleportCheck 1.0
Reply With Quote #5

Thanks for making this extension and I really hope that you are going to update it so it contains more information about the teleporter. Right now, I'm using it to prevent spies from using the teleporter, for the TF2 vanilla plugin.
SpideyFusion is offline
snelvuur
Veteran Member
Join Date: Jun 2008
Location: Netherlands
Old 12-25-2011 , 08:13   Re: [EXTENSION] TeleportCheck 1.0
Reply With Quote #6

was just trying this out, but it was asking for .so files which are in the /bin of orangebox. any reason why? if i chuck them in /lib it works fine, but i dont think that should be the sollution
__________________
Arguing with a fool only proves there are two
snelvuur is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 12-25-2011 , 08:27   Re: [EXTENSION] TeleportCheck 1.0
Reply With Quote #7

Quote:
Originally Posted by snelvuur View Post
was just trying this out, but it was asking for .so files which are in the /bin of orangebox. any reason why? if i chuck them in /lib it works fine, but i dont think that should be the sollution
That shouldn't be happening. What specifically did you have to do? Which .so files did you move?
ducks
Afronanny is offline
snelvuur
Veteran Member
Join Date: Jun 2008
Location: Netherlands
Old 12-25-2011 , 10:23   Re: [EXTENSION] TeleportCheck 1.0
Reply With Quote #8

it was libvstdlib.so and libtier0.so

If i did a ldd:

lz@binkey:~/saxton/orangebox/tf/addons/sourcemod/extensions$ ldd teleportcheck.ext.so
linux-gate.so.1 => (0xf7f17000)
libvstdlib.so => not found
libtier0.so => not found
libdl.so.2 => /lib32/libdl.so.2 (0xf7eff000)
libm.so.6 => /lib32/libm.so.6 (0xf7edb000)
libc.so.6 => /lib32/libc.so.6 (0xf7d88000)
/lib/ld-linux.so.2 (0xf7f18000)
__________________
Arguing with a fool only proves there are two
snelvuur is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 12-25-2011 , 10:31   Re: [EXTENSION] TeleportCheck 1.0
Reply With Quote #9

Quote:
Originally Posted by snelvuur View Post
it was libvstdlib.so and libtier0.so

If i did a ldd:

lz@binkey:~/saxton/orangebox/tf/addons/sourcemod/extensions$ ldd teleportcheck.ext.so
linux-gate.so.1 => (0xf7f17000)
libvstdlib.so => not found
libtier0.so => not found
libdl.so.2 => /lib32/libdl.so.2 (0xf7eff000)
libm.so.6 => /lib32/libm.so.6 (0xf7edb000)
libc.so.6 => /lib32/libc.so.6 (0xf7d88000)
/lib/ld-linux.so.2 (0xf7f18000)
That's expected, but srcds_run adds the bin directory to LD_LIBRARY_PATH.
__________________
asherkin is offline
snelvuur
Veteran Member
Join Date: Jun 2008
Location: Netherlands
Old 12-25-2011 , 17:39   Re: [EXTENSION] TeleportCheck 1.0
Reply With Quote #10

Weird, it is started with the srcds_run..
__________________
Arguing with a fool only proves there are two
snelvuur is offline
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 22:18.


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