This site is a testing version, but all data is shared with the live forum.


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

SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011


Post New Thread Reply   
 
Thread Tools Display Modes
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 09-08-2012 , 10:02   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #271

berni: is it possible yet to get the offsets for cs:go and put them up at your site?
__________________
View my Plugins | Donate
TnTSCS is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 09-08-2012 , 10:10   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #272

Quote:
Originally Posted by TnTSCS View Post
berni, sourcemodplugins needs an update for VTOs please
Quote:
Originally Posted by TnTSCS View Post
berni: is it possible yet to get the offsets for cs:go and put them up at your site?
Can you please post in the correct thread.
__________________
asherkin is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 09-08-2012 , 10:20   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #273

done - and thank you... I thought there was a thread for it, my eyes just weren't focusing on it

I've even posted there before, which is why I thought there was one... again, sorry
__________________
View my Plugins | Donate
TnTSCS is offline
DorCoMaNdO
Senior Member
Join Date: Feb 2012
Old 10-01-2012 , 23:42   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #274

change
Quote:
stock Entity_SetAbsVelocity(entity, const Float:vec[3])
{
TeleportEntity(entity, NULL_VECTOR, NULL_VECTOR, vec);
}
to
Quote:
stock Entity_SetAbsVelocity(entity, const Float:vec[3])
{
SetEntPropVector(entity, Prop_Data, "m_vecAbsVelocity", vec);
}
this will not do any drops / ruin any trigger (as sm_parachute did, my modification which i posted fixes that problem by doing this change)

Last edited by DorCoMaNdO; 10-01-2012 at 23:42.
DorCoMaNdO is offline
Chanz
Veteran Member
Join Date: Aug 2008
Location: Germany - Stuttgart
Old 10-02-2012 , 13:40   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #275

Could you explain what you mean with "will not do any drops" and "ruin any trigger"?
__________________
[ SourceModPlugins.org ][ My Plugins ]

Thank you for donations: [ Paypal ]

Video Tutorial (German): [ Gameserver & SourceMod Plugins mit HLSW verwalten ]
Chanz is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 10-02-2012 , 14:20   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #276

Quote:
Originally Posted by Chanz View Post
Could you explain what you mean with "will not do any drops" and "ruin any trigger"?
+1

TeleportEntity was chosen because it does additional checks and function calls for consistency when the position is changed. Please describe what exactly your problem is, thanks.
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0

Last edited by berni; 10-02-2012 at 14:21.
berni is offline
DorCoMaNdO
Senior Member
Join Date: Feb 2012
Old 10-03-2012 , 01:54   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #277

Quote:
Originally Posted by berni View Post
+1

TeleportEntity was chosen because it does additional checks and function calls for consistency when the position is changed. Please describe what exactly your problem is, thanks.
Many maps (multigames and etc) which give weapons in a round use trigger multiple (without turning it off) and using teleport makes another weapon spawn, same for other triggers - triggers which detect the last alive may bug when someone gets such teleport when 1vs1 and then it will think that 1 player left and teleport BOTH players to the winning position.
If you still want that teleport check you can add a bool for using teleport else use offset.
DorCoMaNdO is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 10-03-2012 , 13:47   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #278

That's a problem with those maps then, or your plugin I think.
The map just isn't made for plugins teleporting players around.
Why are you teleporting them ?

Well, we can make a parameter "bool:changePropertyonly" to make you happy.
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 10-08-2012 , 10:43   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #279

Here is a version of StopSound that can be used on a per-client basis:
PHP Code:
/**
 * Stops a sound for one client.
 *
 * @param client    Client index.
 * @param entity    Entity index.
 * @param channel    Channel number.
 * @param name        Sound file name relative to the "sounds" folder.
 * @noreturn
 */
stock Client_StopSound(cliententitychannel, const String:name[])
{
    
EmitSoundToClient(clientnameentitychannelSNDLEVEL_NONESND_STOP0.0SNDPITCH_NORMAL___true);

The original StopSound uses EmitSound as well but broadcasts to all players.
__________________
GoD-Tony is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 10-08-2012 , 10:48   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #280

The original StopSound function also has an entity parameter, does that mean it stops the sound for all players from that entity ?
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni 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 05:35.


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