AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [L4D] Give Tank control to other player (https://forums.alliedmods.net/showthread.php?t=101998)

Dragonshadow 08-29-2009 10:04

[L4D] Give Tank control to other player
 
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.

AtomicStryker 08-30-2009 05:55

Re: [L4D] Give Tank control to other player
 
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.

Dragonshadow 08-30-2009 08:46

Re: [L4D] Give Tank control to other player
 
I'm not into that higher level stuff yet lol. Dunno how to use any of it... Thats why I posted it in requests :3
I still want this: http://forums.alliedmods.net/showthread.php?t=99320

AtomicStryker 08-30-2009 16:06

Re: [L4D] Give Tank control to other player
 
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.

Dragonshadow 08-30-2009 19:01

Re: [L4D] Give Tank control to other player
 
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 :)

olj 08-30-2009 21:33

Re: [L4D] Give Tank control to other player
 
Can we change who controls tank with this table? And if yes, how exactly?

Dragonshadow 09-01-2009 07:13

Re: [L4D] Give Tank control to other player
 
any news?

OtterNas3 09-02-2009 13:11

Re: [L4D] Give Tank control to other player
 
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

LTR.2 09-02-2009 14:44

Re: [L4D] Give Tank control to other player
 
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.

AtomicStryker 09-02-2009 15:20

Re: [L4D] Give Tank control to other player
 
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.


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

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