Raised This Month: $32 Target: $400
 8% 

[Alien Swarm] Finding current equipped weapon name


Post New Thread Reply   
 
Thread Tools Display Modes
psychonic

BAFFLED
Join Date: May 2008
Old 12-15-2010 , 06:31   Re: [Alien Swarm] Finding current equipped weapon name
Reply With Quote #51

Quote:
Originally Posted by comp_noob View Post
the Swarm_GetPlayerReady function isn't working, it always return false, the Swarm_SetPlayerReady function isn't working either....
It's likely that it then isn't workable via that prop in sp. I'll take a look later and see if there's a function that can be sdkcalled to set it properly.
psychonic is offline
comp_noob
Senior Member
Join Date: Nov 2010
Old 12-15-2010 , 07:07   Re: [Alien Swarm] Finding current equipped weapon name
Reply With Quote #52

ok thanks again for your extra functions, they worked well
comp_noob is offline
psychonic

BAFFLED
Join Date: May 2008
Old 12-15-2010 , 13:33   Re: [Alien Swarm] Finding current equipped weapon name
Reply With Quote #53

Try this one.

The Ready functions work a little differently in this and a Sourcemod 1.4 dev snapshot is required for IsPlayerReady (though the toggle will work fine on 1.3.x). Also, it's possible that IsPlayerReady will crash the server if I fubar'd the gamedata. Don't test on a live one.

Code:
/**  * Returns whether or not a player is marked as ready.  *  * @param client        Client index  * @return              True if player is ready, else false  * @error               Invalid client or unsupported  */ native bool:Swarm_IsPlayerReady(client); /**  * Toggles a player's ready status  *  * @param client        Client index  * @noreturn  * @error               Invalid client  */ native Swarm_TogglePlayerReady(client);
Attached Files
File Type: smx swarmtools.smx (8.4 KB, 134 views)
File Type: sp Get Plugin or Get Source (swarmtools.sp - 218 views - 12.0 KB)
File Type: txt swarmtools.games.txt (1.1 KB, 130 views)
File Type: inc swarmtools.inc (9.7 KB, 123 views)
psychonic is offline
Reply


Thread Tools
Display Modes

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:10.


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