Raised This Month: $ Target: $400
 0% 

Valve Duplicate Tanks Bugfix


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
QOOOOOOOOQ
Senior Member
Join Date: Dec 2012
Old 11-18-2013 , 00:09   Valve Duplicate Tanks Bugfix
Reply With Quote #1

Could someone make a quick plugin bug-fix for glitch-spawning extra tanks? When player-tank is about to lose control, quickly rejoining the gameserver he returns as tank since he was tank before he disconnected, by this time the old tank frustration ran out and goes AI, while the player takes position of the new tank, with full hp.

Features:
OnClientDisconnect, check if the player was a tank, if client reconnects(after say... so many seconds?) and was a tank when leaving and is also tank right after connecting(possibly a second or two after OnClientPutInServer), check if player is alive, then kill the player.

(With those features as a bugfix, this *should* be able to support multiple(such as dual) tanks for modded servers, since it only slays tank players if ON LEAVING and(after a short period) ON CONNECT the player is also tank, correct?)


Game: L4D(2)

Last edited by QOOOOOOOOQ; 11-18-2013 at 00:10.
QOOOOOOOOQ is offline
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 11-18-2013 , 11:52   Re: Valve Duplicate Tanks Bugfix
Reply With Quote #2

Dont have to be that complicated. Just check if the tank is AI and get his HP on "player_hurt".
Restore the current level of HP if human player takeover on "bot_player_replace"
GsiX is offline
QOOOOOOOOQ
Senior Member
Join Date: Dec 2012
Old 11-19-2013 , 23:49   Re: Valve Duplicate Tanks Bugfix
Reply With Quote #3

A player does not takeover, a new player SPAWNS as a new tank, through director spawning, and the old tank just moves to AI and continues as normal.
QOOOOOOOOQ 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 05:11.


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