AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Infected Ghost Everywhere (https://forums.alliedmods.net/showthread.php?t=97002)

AtomicStryker 07-11-2009 11:42

[L4D & L4D2] Infected Ghost Everywhere
 
15 Attachment(s)
Are you too annoyed by the default L4D(2) teleport System as Infected Ghost? It always brings you to the Survivor who is farthest (navigation wise), and then doesn't even turn you in his running direction. If he's running for it, you have a hard time spawning infront of him.

Also, you can't ever warp to Survivors splitting behind the lead one.


Well, NOT ANYMORE :twisted:

This Plugin completely replaces the default system. By pressing (or holding) USE you now get teleported to every other Player in turn (one each second, so you don't shoot past your target). Also, it has you face the same way the Target is facing, so you can immediatly charge past him and find an ambush spot.

[ Version 1.3 includes teleporting to Infected. Both as feature and because i cannot get them rid of in function output :D ]

As an added bonus you get a small over-crosshair-message about who you just teleported to.


This plugin comes in two version because it was originally built for a new Sourcemod 1.3 command. To use the SM 1.3 Version, you need .. well Sourcemod 1.3 :mrgreen:

I've also written a Version for SM 1.2 using good ol' OnGameFrame, which in theory uses up somewhat more server resources.


Changelog

1.0 - First Release
1.1 - Added Fallback code if all else fails.
1.2 - Complete Code Rework. Should work a lot better now
1.3 - Extensive Bugfixing
1.4 - Should not teleport to dead Bots anymore
1.5 - code cleanup

El Goretto 07-11-2009 17:46

Re: [L4D] Infected Ghost Everywhere
 
Damned, 2 wonderful plugins in a week...
AtomicStryker, are you on drugs or what? :)

Thank you (again) for this one, I'll test it soon.

olj 07-12-2009 08:44

Re: [L4D] Infected Ghost Everywhere
 
Quote:

Originally Posted by El Goretto (Post 870036)
Damned, 2 wonderful plugins in a week...
AtomicStryker, are you on drugs or what? :)

Thank you (again) for this one, I'll test it soon.

:mrgreen::mrgreen::mrgreen: THATS 3 PLUGINS DUDE. He also attached "Boomer splash damage" plugin somewhere in "cloud damage" plugin thread. Hm, that doesnt work for bots.

olj 07-13-2009 15:45

Re: [L4D] Infected Ghost Everywhere
 
Dude, it doesnt work. I played 10 vs 10 and it didnt work at all. What build of 1.3 source mod actually needed, mb i have old snapshot of 1.3 version.

Antithasys 07-13-2009 17:29

Re: [L4D] Infected Ghost Everywhere
 
Please update your public cvar with the notify flag and your plugin will be approved.

Reference: http://forums.alliedmods.net/showthread.php?t=57142

AtomicStryker 07-13-2009 18:46

Re: [L4D] Infected Ghost Everywhere
 
Quote:

Originally Posted by Antithasys (Post 871550)
Please update your public cvar with the notify flag and your plugin will be approved.

Reference: http://forums.alliedmods.net/showthread.php?t=57142



PHP Code:

#define CVAR_FLAGS FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_NOTIFY 

uhhhh ?



Quote:

Originally Posted by olj (Post 871474)
Dude, it doesnt work. I played 10 vs 10 and it didnt work at all. What build of 1.3 source mod actually needed, mb i have old snapshot of 1.3 version.

You need the one that has OnClientCmd in it, i think 2711


I've just tested it myself again, it works, but also found a loophole that might glitch out the entire thing. I've added sort of an debugging command at the end .. now it should work at all times, even if you might have to press use twice.

AngryVag 07-13-2009 21:00

Re: [L4D] Infected Ghost Everywhere
 
L 07/13/2009 - 18:23:25: SourceMod error session started
L 07/13/2009 - 18:23:25: Info (map "l4d_vs_hospital02_subway") (file "errors_20090713.log")
L 07/13/2009 - 18:23:25: [SM] Native "GetClientAbsOrigin" reported: Client 5 is not in game
L 07/13/2009 - 18:23:25: [SM] Displaying call stack trace for plugin "l4d_infectedghosteverywhere.smx":
L 07/13/2009 - 18:23:25: [SM] [0] Line 98, /home/groups/alliedmodders/forums/files/5/2/2/3/3/45265.attach::PlayerPressesUse()
L 07/13/2009 - 18:23:25: [SM] [1] Line 50, /home/groups/alliedmodders/forums/files/5/2/2/3/3/45265.attach::OnGameFrame()
L 07/13/2009 - 18:23:26: [SM] Native "GetClientAbsOrigin" reported: Client 5 is not in game
L 07/13/2009 - 18:23:26: [SM] Displaying call stack trace for plugin "l4d_infectedghosteverywhere.smx":
L 07/13/2009 - 18:23:26: [SM] [0] Line 98, /home/groups/alliedmodders/forums/files/5/2/2/3/3/45265.attach::PlayerPressesUse()
L 07/13/2009 - 18:23:26: [SM] [1] Line 50, /home/groups/alliedmodders/forums/files/5/2/2/3/3/45265.attach::OnGameFrame()
L 07/13/2009 - 18:31:11: Error log file session closed.

olj 07-14-2009 05:00

Re: [L4D] Infected Ghost Everywhere
 
OK i will check what version i have and will get 1.1 version of plugin also.

AtomicStryker 07-14-2009 05:22

Re: [L4D] Infected Ghost Everywhere
 
Quote:

Originally Posted by AngryVag (Post 871674)
L 07/13/2009 - 18:23:25: [SM] Native "GetClientAbsOrigin" reported: Client 5 is not in game

And another plugin gives me this error in a line that had a if IsClientIngame infront of it :shock:

Well. I've added what should be a fix to these messages.

olj 07-14-2009 12:52

Re: [L4D] Infected Ghost Everywhere
 
Ok, i have 2690 version, lol. I think its kinda old so i will upgrade later (im reading scripting manuals now).


All times are GMT -4. The time now is 22:44.

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