View Single Post
Author Message
alexip121093
Senior Member
Join Date: Dec 2009
Location: Hong Kong
Old 03-26-2010 , 22:10   [L4D2] Team list panel with player status
Reply With Quote #1

Author: hihi1210(me)

This Player panel only work in L4D2
Support all L4D2 gamemodes (include realism versus)

now requires Left 4 Downtown 2

Total: bot+players(real players)/max Survivors: all Survivors(real players Survivors)/max Survivors Infected: all Infected(real players Infected)/max Infected

Usage:
This panel can display both player names , their HP , status and items. Can work over 8 Players,
especially good for COOP servers over 4 Players.
For more information, see the photo below

REQUIRE SOURCEMOD 1.3 above
Cvar can config in left4dead2/left4dead2/cfg/sourcemod/l4d2_teamdisplay.cfg
(remember to remove old version l4d2_teamdisplay.cfg)
[
Code:
 
// auto display panel to Spectator
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_teampanel_Spectatorautodisplay "1"
 
// display Spectator in the panel
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_teampanel_Spectatordisplay "1"
 
// auto display panel to dead players
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_teampanel_deadautodisplay "1"
 
// "0 : display all information of both teams ,1 : just display your team name ,hp & status,2: display your team name ,hp & status and only display name for other team
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "2.000000"
l4d2_teampanel_display "2"
 
//0: disable team panel ,1: !showteam command display the panel once ,2: !showteam command auto refresh the panel every 1 second
// -
// Default: "2"
// Minimum: "0.000000"
// Maximum: "2.000000"
l4d2_teampanel_mode "2"
 
//auto disable the panel when player spawn (only work with l4d2_teampanel_mode 2)
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_teampanel_AutoDisable "1"
 
 
//auto show the panel when player see the score board
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_teampanel_Autoshowafterscore "1"
 
//how many seconds the panel will disappear(will not stop the panel when it auto refreshs)
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "999.000000"
l4d2_teampanel_timeout "1"
 
//Message display method (3= display both chat and hint text,2=just hint text, 1=just chat text,0=disable)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "3.000000"
l4d2_teampanel_ads "1"
l4d2_teampanel_mode cvar can control the function of sm_showteam ,
if it is mode 1 , sm_showteam just display the panel once,
but in mode 2 sm_showteam can display the panel with auto refresh every 1 second
and you can type sm_showteam again to disable the auto refresh of the panel

Command:
The only command in game

sm_showteam

Future updates:
- add cvar to control the display of information between teams
-help me think

Special thanks:
http://forums.alliedmods.net/showthread.php?t=115313
thx for the idea and some code

Chage Log:
2.0
now requires Left 4 Downtown 2
added ghost respawn time display
added survivors items display
code optimization
1.75
add 1 cvar(message display method)
and add support for realism versus
1.71
add 1 cvar (timeout)
1.7
added auto diplay after play see the score board
added l4d2_teampanel_display 2
require SM 1.3
1.5a 64 views
fixed the bug of sometimes the panel cannot display all the players
1.5
improve The last line in the panel
1.4
add auto disable panel for displaymode2
1.3
add Spectator support
1.2
added 2 cvar
1.1
added 2 cvar
changed plugin name

1.0 public release

Attached Thumbnails
Click image for larger version

Name:	c1m1_hotel0011.jpg
Views:	27194
Size:	80.8 KB
ID:	62536   Click image for larger version

Name:	c2m1_highway0010.jpg
Views:	27504
Size:	95.8 KB
ID:	62538  
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_teamdisplay.sp - 3626 views - 22.1 KB)
File Type: smx l4d2_teamdisplay2.0-1.smx (10.7 KB, 1481 views)
File Type: sp Get Plugin or Get Source (l4d2_teamdisplay2.0-1.sp - 1312 views - 21.1 KB)

Last edited by alexip121093; 04-04-2011 at 23:50.
alexip121093 is offline
Send a message via MSN to alexip121093