Re: SMLIB 0.9.2 BETA (269 Function Stocks) | updated 28.01.2011
Quote:
Did you try this using a large system where multiple source files need 1 or 2 functions from 1 or 2 files instead of everything? I do not have time to test this at the moment, especially since this is Month End, but I will get back to you when I do. Quote:
Quote:
|
Re: SMLIB 0.9.4 BETA (278 Function Stocks) | updated 31.01.2011
The preprocessor include system is almost the same in both languages.
|
Re: SMLIB 0.9.2 BETA (269 Function Stocks) | updated 28.01.2011
Quote:
Quote:
|
Re: SMLIB 0.9.4 BETA (278 Function Stocks) | updated 31.01.2011
Doh! :oops:
Sorry about that, Indeed I should of read the last update changes |
Re: SMLIB 0.9.4 BETA (278 Function Stocks) | updated 31.01.2011
By the way, the sourcemod compiler automatically includes <sourcemod> (with all its 60 subincludes), even if you don't have it specified in your plugin.
If you want to complain, I would start there :wink: |
Re: SMLIB 0.9.4 BETA (278 Function Stocks) | updated 31.01.2011
This function needs to be fixed:
PHP Code:
|
Re: SMLIB 0.9.4 BETA (278 Function Stocks) | updated 31.01.2011
Quote:
Also, you usually need to use parts of most of the sourcemod includes in any given plugin while many of the smlib includes are more stand-alone without really needing the others. |
Re: SMLIB 0.9.4 BETA (278 Function Stocks) | updated 31.01.2011
The Entity_Flags look suspect, are EFL_KEEP_ON_RECREATE_ENTITIES and EFL_HAS_PLAYER_CHILD both supposed to be bit 4?
PHP Code:
Also, you might want to define it as PHP Code:
|
Re: SMLIB 0.9.4 BETA (278 Function Stocks) | updated 31.01.2011
Quote:
Quote:
Quote:
so I'm quite sure it's correct :wink: I think it's ok like it is now. |
Re: SMLIB 0.9.4 BETA (278 Function Stocks) | updated 31.01.2011
I just wanted to note that using:
stock Client_GiveWeapon(client, const String:className[], bool:switchTo=true); will override any restrictions that other mods may have on the weapon. For example you can use this command to give a zombie weapons in a ZR server. I do not know if this was intended or not. Note however that the normal GivePlayerItem command does not allow zombies to get weapons. |
Re: SMLIB 0.9.4 BETA (278 Function Stocks) | updated 31.01.2011
I've never worked with ZR, but if you don't want to give a zombie a weapon, then check if the client is a zombie and don't give it to him.
It would be bad to add an automatic check only for ZR, imagine we need to do this for as example Hide and Seek and every other mod/plugin etc. even if its only for Client_GiveWeapon, its performance would drop extreamly to check these, not to mention the work to keep everything working. |
Re: SMLIB 0.9.4 BETA (278 Function Stocks) | updated 31.01.2011
Quote:
I don't know much about ZR either, but the Scripter is responsible himself who he calls this function on, there are maybe coders who do want to give weapons to zombies, implementing a restriction would be a bad idea. |
Re: SMLIB 0.9.4 BETA (278 Function Stocks) | updated 31.01.2011
Oh I am not requesting it be made to work like that I am only stating that functionally it does not work the same as GivePlayerItem() and that programers should be careful which one they use depending on the situation.
|
Re: SMLIB 0.9.4 BETA (278 Function Stocks) | updated 31.01.2011
well every author needs to be careful even with GivePlayerItem() since you can't just hope that a function is blocked by another plugin. you should always be sure and minimize function calls by filtering out unwanted clients etc.
|
Re: SMLIB 0.9.4 BETA (278 Function Stocks) | updated 31.01.2011
Question: is Math_GetRandomInt(min, max); inclusive?
In that are min and max possible outputs for this function or only values between them. Same for the Math_GetRamdomFloat... |
Re: SMLIB 0.9.4 BETA (278 Function Stocks) | updated 31.01.2011
Quote:
Another note on GivePlayerItem(), this function is not very safe, as it spawns a weapon or an item at the players position and hopes the player touches it. If the player is currently inside a wall or does already have that item, the item would be dropped to the floor. |
Re: SMLIB 0.9.4 BETA (278 Function Stocks) | updated 31.01.2011
Cool thanks!
Also yes I know of the GivePlayerItem() issue which is why I strip weapons or check to see if they have what I am giving before use. |
Re: SMLIB 0.9.6 BETA (289 Function Stocks) | updated 03.02.2011
New smlib update available: smlib 0.9.6 beta
Important Note: SVN folder structure has been changed. Compatibility breaks: yes Changes: Quote:
|
Re: SMLIB 0.9.6 BETA (289 Function Stocks) | updated 03.02.2011
Berni, you might want to take a look at this stock in clients.inc:
Code:
/** |
Re: SMLIB 0.9.6 BETA (289 Function Stocks) | updated 03.02.2011
ok "S" should be "G" :) commited to svn.
|
Re: SMLIB 0.9.6 BETA (289 Function Stocks) | updated 03.02.2011
and you might want to return the result :stupid:
|
Re: SMLIB 0.9.6 BETA (289 Function Stocks) | updated 03.02.2011
Please download from the svn repo, thanks :3
can't make a new release for every little change. |
Re: SMLIB 0.9.6 BETA (289 Function Stocks) | updated 03.02.2011
Quote:
Code:
// clients.inc(632) : error 092: number of arguments does not match definition |
Re: SMLIB 0.9.6 BETA (289 Function Stocks) | updated 03.02.2011
Slap me hard *sigh* :oops:
updated. |
Re: SMLIB 0.9.6 BETA (289 Function Stocks) | updated 03.02.2011
Bug, when using third person you have to set the movement type back, other than that its all good!
|
Re: SMLIB 0.9.6 BETA (289 Function Stocks) | updated 03.02.2011
berni, I appreciate your efforts on this. Thanks for saving me a lot of time writing code :)
|
Re: SMLIB 0.9.6 BETA (289 Function Stocks) | updated 03.02.2011
Quote:
removes your movetype, I added an argument now to disallow it changing the movetype, it's on svn. I will rewrite this stock someday anyway, to make it work for all games, atm this seems really dirty for me. |
Re: SMLIB 0.9.6 BETA (289 Function Stocks) | updated 03.02.2011
Hi,
To Array_Find[Value|String] Please add search start position. Thanks. |
Re: SMLIB 0.9.6 BETA (289 Function Stocks) | updated 03.02.2011
I found a bug:
Code:
It's changed. Regards Benni. |
Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Thanks for the great participation, bug reporting and feature suggestions folks, this really became a powerful library :)
New smlib update available: smlib 0.9.7 beta Compatibility breaks: yes Changes: Quote:
|
Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Why is Client_SetMaxSpeed part of entities.inc?
|
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
I think that I found a new bug.
Code:
it should be m_iName Regards Benni. |
Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
The function GetEntityTargetName doesn't even exist in smlib.
+ You are looking for Entity_GetName(). |
Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Sorry, than it was my fault.
I didn't checked the new version of that function. Regards Benni. |
Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
There is no new function, it has always been like that.
|
Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Great work! Loving this stock list!
Once request: how about a give weapon and amo function so that you can give a weapon and fill it with the default amo you would get it you bought it. This would simplify coding for many people who are just giving a weapon in place of a user buying it. |
Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Don't weapons have default ammo when you just give them to the player ?
Unfortunately we don't have access to the weapon data in any way, this includes default ammo, max ammo, fire rates and all that kinda things, there are no properties for reading that and smlib doesn't do SDKCalls. The weapon functions are already as powerful as they can be. That means you have to do any game specific weapon stuff yourself. |
Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Quote:
Here I was looking for it, in clients.inc! |
Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
It's already fixed ;)
We added Entity_SetMaxSpeed also now. |
| All times are GMT -4. The time now is 21:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.