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

[L4D] Give Tank control to other player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dragonshadow
BANNED
Join Date: Jun 2008
Old 08-29-2009 , 10:04   [L4D] Give Tank control to other player
Reply With Quote #1

Say I get tank, and I don't want tank, I want to give my friend tank... Well, I could sit there and wait for frustration to run out, but there is no guarantee that it will switch to her. I want a small plugin that will allow me to "give" control of the tank to whoever I specify, such as:

/gt Fire

Now they become tank, and I either:

1) Die
2) Take over their SI (possible?)

It could have a menu for /gt (without parameters) but I don't really need that.
Dragonshadow is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 08-30-2009 , 05:55   Re: [L4D] Give Tank control to other player
Reply With Quote #2

You could set the Frustration CVAR to 0 for a moment .. a player would lose control ... and this table here decides who gets tank next, i think

PHP Code:
CTerrorPlayerResource

   Sub
-Class Table (3 Deep): m_iTankTickets
   
-Member000 (offset 0) (type integer) (bits 16)
   -
Member001 (offset 4) (type integer) (bits 16)
   -
Member002 (offset 8) (type integer) (bits 16)
   -
Member003 (offset 12) (type integer) (bits 16)
   -
Member004 (offset 16) (type integer) (bits 16)
   -
Member005 (offset 20) (type integer) (bits 16)
   -
Member006 (offset 24) (type integer) (bits 16)
   -
Member007 (offset 28) (type integer) (bits 16)
   -
Member008 (offset 32) (type integer) (bits 16)
   -
Member009 (offset 36) (type integer) (bits 16)
   -
Member010 (offset 40) (type integer) (bits 16)
   -
Member011 (offset 44) (type integer) (bits 16)
   -
Member012 (offset 48) (type integer) (bits 16)
   -
Member013 (offset 52) (type integer) (bits 16)
   -
Member014 (offset 56) (type integer) (bits 16)
   -
Member015 (offset 60) (type integer) (bits 16)
   -
Member016 (offset 64) (type integer) (bits 16)
   -
Member017 (offset 68) (type integer) (bits 16)
   -
Member018 (offset 72) (type integer) (bits 16)
   -
Member019 (offset 76) (type integer) (bits 16)
   -
Member020 (offset 80) (type integer) (bits 16)
   -
Member021 (offset 84) (type integer) (bits 16)
   -
Member022 (offset 88) (type integer) (bits 16)
   -
Member023 (offset 92) (type integer) (bits 16)
   -
Member024 (offset 96) (type integer) (bits 16)
   -
Member025 (offset 100) (type integer) (bits 16)
   -
Member026 (offset 104) (type integer) (bits 16)
   -
Member027 (offset 108) (type integer) (bits 16)
   -
Member028 (offset 112) (type integer) (bits 16)
   -
Member029 (offset 116) (type integer) (bits 16)
   -
Member030 (offset 120) (type integer) (bits 16)
   -
Member031 (offset 124) (type integer) (bits 16)
   -
Member032 (offset 128) (type integer) (bits 16
You'd need to find the entity with those values .. its probably one of these

PHP Code:
terror_player_manager
terror_gamerules
cs_team_manager 
And set the Player ID you WANT to get tank the highest ticket number.
AtomicStryker is offline
Dragonshadow
BANNED
Join Date: Jun 2008
Old 08-30-2009 , 08:46   Re: [L4D] Give Tank control to other player
Reply With Quote #3

I'm not into that higher level stuff yet lol. Dunno how to use any of it... Thats why I posted it in requests
I still want this: http://forums.alliedmods.net/showthread.php?t=99320

Last edited by Dragonshadow; 08-30-2009 at 08:58.
Dragonshadow is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 08-30-2009 , 16:06   Re: [L4D] Give Tank control to other player
Reply With Quote #4

I've tried changing an Infected's Class just once ... it crashed the server. Also i've seen better Coders than me attempt it and not succeed .. so no.

But this Tank idea, i'll give it a shot.
AtomicStryker is offline
Dragonshadow
BANNED
Join Date: Jun 2008
Old 08-30-2009 , 19:01   Re: [L4D] Give Tank control to other player
Reply With Quote #5

I thought you could do (for the switching) something like, kill both players, spawn their opposite infected for them, then force them into ghost mode.

Thanks for looking into the tank thing
Dragonshadow is offline
olj
Veteran Member
Join Date: Jun 2009
Old 08-30-2009 , 21:33   Re: [L4D] Give Tank control to other player
Reply With Quote #6

Can we change who controls tank with this table? And if yes, how exactly?
__________________
olj is offline
Dragonshadow
BANNED
Join Date: Jun 2008
Old 09-01-2009 , 07:13   Re: [L4D] Give Tank control to other player
Reply With Quote #7

any news?
Dragonshadow is offline
OtterNas3
Senior Member
Join Date: Apr 2009
Old 09-02-2009 , 13:11   Re: [L4D] Give Tank control to other player
Reply With Quote #8

1 problem that occur, on Kill & Respawn, in the final maps would be when the final is started already...

When the second Tank in final spawn, someone get control of it, let's say a menu opens and the Player can select to swap with someone:
Tank get killed and respawns, but i'm sure Server will end final and the Rescue Vehicle will come instantly.

So it should be deactivated on final maps.

Moo,
OtterNas3
OtterNas3 is offline
LTR.2
Veteran Member
Join Date: Aug 2009
Old 09-02-2009 , 14:44   Re: [L4D] Give Tank control to other player
Reply With Quote #9

what about being able to control the frustation metter, if the player doens't want the tank then press a key or say something on the chat and the frustation meter goes down, and another player get the control.
LTR.2 is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 09-02-2009 , 15:20   Re: [L4D] Give Tank control to other player
Reply With Quote #10

Ive written the basic code layout. But i havent checked yet if tank tickets even have any value in versus matches, because i havent played any. Thank mi123645 for that, he insists i spend all my L4D time with him, testing his Infected Bots.
AtomicStryker 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 11:34.


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