Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
1 Attachment(s)
Was wondering if your php script at: http://www.sourcemodplugins.org/smlibfunctions.php
Could be used to make it easier to read other include files like the one attached? |
Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
This was just a quick & dirty thing.
I have written a much more powerful Pawn Parser that I maybe will release together with the dynamic API documention, don't know yet :3 |
Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Ah, cool. Yea I have been trying to find a better way to see the list of natives and descriptions for that mod so that I and others can have an easier time writing programs for it.
|
Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Handles to convars don't need to be closed, as you're not making a new one when you find a convar.
|
Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Quote:
|
Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Quote:
Citation: http://hg.alliedmods.net/sourcemod-c...nager.cpp#l451 |
Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Quote:
If I get everything done I have in my head, I will make a bigger release today, including extensive chat color support. |
Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Quote:
|
Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Quote:
|
Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Quote:
Quote:
SM calls FindVar to first make sure the convar exists before looking to see if it already has a handle to it. FindVar iterates through all cvars and commands, doing string compares. This is why it is slow even if SM already has a handle to it, and thus, why you should still cache the handle. |
Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Quote:
|
Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Quote:
|
Re: SMLIB 0.10.0 BETA (over 300 Function Stocks) | updated 26.02.2011
New smlib update available: smlib 0.10.0 beta
Compatibility breaks: yes This is a very big release with a powerful chat color parser, allows you to print colored text message to the chat, it basically works like exvel' colors.inc, but it is more flexible, faster and supports more colors. Those are the color tags you can use in eg. Client_PrintToChat() (see colors.inc in the meanwhile): {N}, {O}, {R}, {RB}, {B}, {BR}, {T}, {L}, {GRA}, {G}, {OG}, {BLA} More Info on Colors: Click Me! Changes: Quote:
|
Re: SMLIB 0.10.0 BETA (over 300 Function Stocks) | updated 26.02.2011
Quote:
also Quote:
|
Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Quote:
|
Re: SMLIB 0.10.0 BETA (over 300 Function Stocks) | updated 26.02.2011
|
Re: SMLIB 0.10.0 BETA (over 300 Function Stocks) | updated 26.02.2011
Quote:
and yeh, I was in a hurry yesterday, change list should be fine now 8) |
Re: SMLIB 0.10.0 BETA (over 300 Function Stocks) | updated 26.02.2011
3 more stocks:
PHP Code:
|
Re: SMLIB 0.10.0 BETA (over 300 Function Stocks) | updated 26.02.2011
Hi,
Please add something like Team_FindByName that return team index of team with specific name or -1 when can't find. Also in teams.inc function Team_GetEdict(index) PHP Code:
|
Re: SMLIB 0.10.0 BETA (over 300 Function Stocks) | updated 26.02.2011
Quote:
http://docs.sourcemod.net/api/index....d=show&id=501& |
Re: SMLIB 0.10.0 BETA (over 300 Function Stocks) | updated 26.02.2011
Quote:
I can add Team_FindByName() for completion, but you can use FindTeamByName like asherkin said. |
Re: SMLIB 0.10.1 BETA (over 300 Function Stocks) | updated 07.03.2011
New smlib update available: smlib 0.10.1 beta
Compatibility breaks: yes I added a useful documentation on how to use smlib's color API: Click Me! Changes: Quote:
|
Re: SMLIB 0.10.1 BETA (over 300 Function Stocks) | updated 07.03.2011
New smlib update available: smlib 0.10.2 beta
Compatibility breaks: no Changes: Quote:
Download here. |
Re: SMLIB 0.10.1 BETA (over 300 Function Stocks) | updated 07.03.2011
I would like to see this stock in SMLIB. It's from the Zombie:Reloaded plugin (all credit to them), and I use it regularly to check if a player is in a particular group.
PHP Code:
|
Re: SMLIB 0.10.1 BETA (over 300 Function Stocks) | updated 07.03.2011
Sure, I'm gonna add this one :)
|
Re: SMLIB 0.10.1 BETA (over 300 Function Stocks) | updated 07.03.2011
For some reason this code won't compile, even on your online compiler: http://p.hlxce.com/291
It keeps saying it can't find Client_HasWeapon, even though it is listed in smlib/clients.inc. EDIT: Also, Client_HasWeapon should return a bool (you forgot the tag). |
Re: SMLIB 0.10.1 BETA (over 300 Function Stocks) | updated 07.03.2011
Quote:
|
Re: SMLIB 0.10.1 BETA (over 300 Function Stocks) | updated 07.03.2011
Yep the include files are in the correct place. The weird thing is that it's also not compiling on the "web IDE" that berni posted in the OP.
|
Re: SMLIB 0.10.1 BETA (over 300 Function Stocks) | updated 07.03.2011
Seems like anywhere is a { or } missing/double.
Sorry can't locate it atm, but it seems its in the clients.inc since #include <smlib/clients> brings up the same error. |
Re: SMLIB 0.10.1 BETA (over 300 Function Stocks) | updated 07.03.2011
Quote:
Edit: I don't know why, but somehow the linux compiler doesn't seem to like include directorys, it includes the sm clients.inc, instead of the smlib one. Edit2: Changing <smlib/clients> to <smlib/clients.inc> seems to help, I'm gonna change all includes in the next smlib release. |
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.
|
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, |
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); |
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?! |
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. |
Re: SMLIB 0.10.1 BETA (over 300 Function Stocks) | updated 07.03.2011
it should probably be attacker <= MaxClients
|
Re: SMLIB 0.9 BETA (266 Function Stocks)
Quote:
|
Re: SMLIB 0.9 BETA (266 Function Stocks)
Quote:
Quote:
|
Re: SMLIB 0.10.1 BETA (over 300 Function Stocks) | updated 07.03.2011
is there any chance to set "black"/custom color?
|
Re: SMLIB 0.10.1 BETA (over 300 Function Stocks) | updated 07.03.2011
Quote:
|
| All times are GMT -4. The time now is 21:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.