Raised This Month: $51 Target: $400
 12% 

[L4D] Give Tank control to other player


Post New Thread Reply   
 
Thread Tools Display Modes
olj
Veteran Member
Join Date: Jun 2009
Old 09-02-2009 , 18:29   Re: [L4D] Give Tank control to other player
Reply With Quote #11

Quote:
Originally Posted by AtomicStryker View Post
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.
Nice, if you make admins able to choose who will control tank that would be one of greatest plugins for l4d.
__________________
olj is offline
mi123645
Veteran Member
Join Date: Feb 2009
Old 09-03-2009 , 18:42   Re: [L4D] Give Tank control to other player
Reply With Quote #12

Quote:
Originally Posted by AtomicStryker View Post
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.
Hey you know you like it

And we did find a way to make a better priority system for the tank, we could incorporate this in versus somehow.
mi123645 is offline
olj
Veteran Member
Join Date: Jun 2009
Old 09-04-2009 , 04:12   Re: [L4D] Give Tank control to other player
Reply With Quote #13

Quote:
Originally Posted by mi123645 View Post
Hey you know you like it

And we did find a way to make a better priority system for the tank, we could incorporate this in versus somehow.
Can you release a code or a separate plugin? I mean, besides Infected Bots (btw good luck with this ), i want something to give admins possibility to take control of tanks, and change tank giving system to something more suitable (instead of retarded random, giving tanks to afk players or mega-noob tanks).
__________________
olj is offline
Dragonshadow
BANNED
Join Date: Jun 2008
Old 09-05-2009 , 16:45   Re: [L4D] Give Tank control to other player
Reply With Quote #14

The only problem I can see is that once the second player loses control it goes to AI.
Dragonshadow is offline
LTR.2
Veteran Member
Join Date: Aug 2009
Old 09-05-2009 , 18:20   Re: [L4D] Give Tank control to other player
Reply With Quote #15

what's the problem with that? AI does great sometimes.
LTR.2 is offline
Dragonshadow
BANNED
Join Date: Jun 2008
Old 09-05-2009 , 21:01   Re: [L4D] Give Tank control to other player
Reply With Quote #16

Quote:
Originally Posted by LTR.2 View Post
what's the problem with that? AI does great sometimes.
LOL
Dragonshadow is offline
olj
Veteran Member
Join Date: Jun 2009
Old 09-05-2009 , 21:05   Re: [L4D] Give Tank control to other player
Reply With Quote #17

Quote:
Originally Posted by LTR.2 View Post
what's the problem with that? AI does great sometimes.
/slap
__________________
olj is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 09-06-2009 , 14:03   Re: [L4D] Give Tank control to other player
Reply With Quote #18

Little Update ... with my first attempt i had Tanktickets always return -1.

This can mean 2 things:
a) the entity property isnt used, and this approach pointless
b) i hadn't specified the bits to read, now i did, i will try that again

c) if its by default always -1 i wonder if setting it to a value has effects
AtomicStryker is offline
Red Alex
Member
Join Date: Aug 2009
Old 09-07-2009 , 07:02   Re: [L4D] Give Tank control to other player
Reply With Quote #19

I try to read m_tankTickets. Its not always -1. Seems that higher the value the higher the chance of get tank control. But when i set it to -1 for all players except one it doesn't work. Another player get control...
Red Alex is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 09-07-2009 , 12:53   Re: [L4D] Give Tank control to other player
Reply With Quote #20

TankTickets are a Dead end. I've now tried m_pendingTankPlayerIndex which sounded so promising ... but it appears to be not set as long as theres no tank lottery, and during lottery it always returned 1 for me.

Playing around with the bit values ... but i've almost given up hope on this one.


I think Valve scrapped whatever they used to have and now use a very plugin-like random instant decision. Which, unfortunately, would prove resistant to modding.

Last edited by AtomicStryker; 09-07-2009 at 12:56.
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 15:15.


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