AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011 (https://forums.alliedmods.net/showthread.php?t=148387)

gCode 03-11-2011 07:04

Re: SMLIB 0.10.1 BETA (over 300 Function Stocks) | updated 07.03.2011
 
Please add getting count of all players, and GetRandomPlayer(Count, team), if team 3, then script will choose player from all teams without spectators.

Chanz 03-11-2011 08:29

Re: SMLIB 0.10.1 BETA (over 300 Function Stocks) | updated 07.03.2011
 
GetRandomPlayer(count, team) what does count mean?
And instead of a team index I suggest to handle it as an bitflag var and use an enum to specify the teams etc.

Team_Unassigned = 0,
Team_Spectator = 1,
Team_One = 2,
Team_Two = 4,
...
Team_Dead,
Team_Alive,
Team_All,

gCode 03-11-2011 13:28

Re: SMLIB 0.10.1 BETA (over 300 Function Stocks) | updated 07.03.2011
 
Count of getting players...
Nice idea. Team_All, super.
Please, add this function.

And if you can... Function of brightness map. (light controller) SetMapBrightness(Count of brigntness);
Also force round end. ForceRoundEnd(Float: Delay);

gCode 03-15-2011 13:36

Re: SMLIB 0.10.1 BETA (over 300 Function Stocks) | updated 07.03.2011
 
03/15/2011 - 20:33:19: [SM] Native "GetEntPropEnt" reported: Property "m_hActiveWeapon" not found (entity 111/entityflame)
03/15/2011 - 20:33:19: [SM] Displaying call stack trace for plugin "zinfection.smx":
03/15/2011 - 20:33:19: [SM][0] Line 929, E:\scripting\include\smlib/clients.inc::Client_GetActiveWeapon()
03/15/2011 - 20:33:19: [SM][1] Line 948, E:\scripting\include\smlib/clients.inc::Client_GetActiveWeaponName()

if (IsValidEntity(attacker) && attacker > MaxClients)
{
Client_GetActiveWeaponName(attacker, ActivePlayerWeapon, 64);

wtf?!

Chanz 03-15-2011 14:00

Re: SMLIB 0.10.1 BETA (over 300 Function Stocks) | updated 07.03.2011
 
attacker > MaxClients wtf!?

Please check if you really want the weapon of a non player entity...
Probably attacker is your client entity index so Client_IsValid(attacker) would be better.

berni 03-15-2011 17:21

Re: SMLIB 0.10.1 BETA (over 300 Function Stocks) | updated 07.03.2011
 
it should probably be attacker <= MaxClients

Master53 03-20-2011 10:16

Re: SMLIB 0.9 BETA (266 Function Stocks)
 
Quote:

Originally Posted by berni (Post 1398702)

is this suggesting that you can use lightgreen in hl2mp because if it did that would be awsome.

asherkin 03-20-2011 12:07

Re: SMLIB 0.9 BETA (266 Function Stocks)
 
Quote:

Originally Posted by berni (Post 1398702)
Valid colors are:
...
"black"

D:

Quote:

Originally Posted by asherkin (Post 1369990)
\x06 is just the 'custom' colour in the OBV engine, it's specified at runtime in the client code by CBaseHudChat::SetCustomColor(const char *).
For example TF2 uses it for the item found messages, where it sets it to the colour representing the quality of the found item.
It's black before it is set in code.
Maybe it could be added with a {custom} name, just please not {black}.


Leonardo 03-20-2011 12:12

Re: SMLIB 0.10.1 BETA (over 300 Function Stocks) | updated 07.03.2011
 
is there any chance to set "black"/custom color?

psychonic 03-20-2011 13:15

Re: SMLIB 0.10.1 BETA (over 300 Function Stocks) | updated 07.03.2011
 
Quote:

Originally Posted by Leonardo (Post 1436501)
is there any chance to set "black"/custom color?

Nope. It's been requested of Valve, but there is currently no way for the server to manually set a color for it.


All times are GMT -4. The time now is 21:59.

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