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

[CS:GO] Sprays (you can use sprays in CS:GO)


Post New Thread Reply   
 
Thread Tools Display Modes
Konstantin
Senior Member
Join Date: Nov 2012
Old 03-31-2014 , 09:00   Re: [CS:GO] Sprays (you can use sprays in CS:GO)
Reply With Quote #11

Quote:
Originally Posted by Franc1sco View Post
You can use bind t sm_spray also for dont write !spray in the public chat
Thatīs better!
__________________
OS: Linux
Gameserver: CS:GO Mini Games
Konstantin is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 03-31-2014 , 09:18   Re: [CS:GO] Sprays v1.1 (you can use sprays in CS:GO)
Reply With Quote #12

I'm pretty sure you can get the current 'impulse' command from the usercmd so players won't have to bind anything.
__________________
retired
shavit is offline
Dkmuniz
Senior Member
Join Date: Jun 2013
Old 04-01-2014 , 15:31   Re: [CS:GO] Sprays v1.1 (you can use sprays in CS:GO)
Reply With Quote #13

You can create one version for store plugin ?? for the player can buy sprays
Dkmuniz is offline
PresidentEvil
AlliedModders Donor
Join Date: Jun 2012
Old 04-01-2014 , 16:05   Re: [CS:GO] Sprays v1.1 (you can use sprays in CS:GO)
Reply With Quote #14

this is great but when you spray again the previous sprays need to disappear like in CSS
__________________
PresidentEvil is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 04-01-2014 , 16:46   Re: [CS:GO] Sprays v1.1 (you can use sprays in CS:GO)
Reply With Quote #15

Quote:
Originally Posted by shavit View Post
I'm pretty sure you can get the current 'impulse' command from the usercmd so players won't have to bind anything.
how to? any contribution is appreciated

Quote:
Originally Posted by Dkmuniz View Post
You can create one version for store plugin ?? for the player can buy sprays
Is possible, but not have enough priority for do it

Quote:
Originally Posted by PresidentEvil View Post
this is great but when you spray again the previous sprays need to disappear like in CSS
I use "World Decal" that have enough lifetime for use it, I previously have been tested with "BSP Decal" (lifetime is forever) and "Entity Decal" (normally dont work) but did not meet expectations (and "Player Decal" that is used for defaults sprays dont work in CS:GO) and I dont know a method to delete manually TemporalEntities (not instantly for control the lifetime) so I think that not is possible
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 04-01-2014 at 16:51.
Franc1sco is offline
Send a message via MSN to Franc1sco
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 04-02-2014 , 01:01   Re: [CS:GO] Sprays v1.1 (you can use sprays in CS:GO)
Reply With Quote #16

Quote:
Originally Posted by Franc1sco View Post
how to? any contribution is appreciated
Code:
/**
 * @brief Called when a clients movement buttons are being processed
 *
 * @param client    Index of the client.
 * @param buttons    Copyback buffer containing the current commands (as bitflags - see entity_prop_stocks.inc).
 * @param impulse    Copyback buffer containing the current impulse command.
 * @param vel        Players desired velocity.
 * @param angles    Players desired view angles.
 * @param weapon    Entity index of the new weapon if player switches weapon, 0 otherwise.
 * @param subtype    Weapon subtype when selected from a menu.
 * @param cmdnum    Command number. Increments from the first command sent.
 * @param tickcount    Tick count. A client's prediction based on the server's GetGameTickCount value.
 * @param seed        Random seed. Used to determine weapon recoil, spread, and other predicted elements.
 * @param mouse        Mouse direction (x, y).
 * @return             Plugin_Handled to block the commands from being processed, Plugin_Continue otherwise.
 *
 * @note            To see if all 11 params are avaliable, use FeatureType_Capability and
 *                    FEATURECAP_PLAYERRUNCMD_11PARAMS.
 */
forward Action:OnPlayerRunCmd(client, &buttons, &impulse, Float:vel[3], Float:angles[3], &weapon, &subtype, &cmdnum, &tickcount, &seed, mouse[2]);
__________________
retired
shavit is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 04-02-2014 , 06:42   Re: [CS:GO] Sprays v1.1 (you can use sprays in CS:GO)
Reply With Quote #17

Quote:
Originally Posted by shavit View Post
Code:
/**
 * @brief Called when a clients movement buttons are being processed
 *
 * @param client    Index of the client.
 * @param buttons    Copyback buffer containing the current commands (as bitflags - see entity_prop_stocks.inc).
 * @param impulse    Copyback buffer containing the current impulse command.
 * @param vel        Players desired velocity.
 * @param angles    Players desired view angles.
 * @param weapon    Entity index of the new weapon if player switches weapon, 0 otherwise.
 * @param subtype    Weapon subtype when selected from a menu.
 * @param cmdnum    Command number. Increments from the first command sent.
 * @param tickcount    Tick count. A client's prediction based on the server's GetGameTickCount value.
 * @param seed        Random seed. Used to determine weapon recoil, spread, and other predicted elements.
 * @param mouse        Mouse direction (x, y).
 * @return             Plugin_Handled to block the commands from being processed, Plugin_Continue otherwise.
 *
 * @note            To see if all 11 params are avaliable, use FeatureType_Capability and
 *                    FEATURECAP_PLAYERRUNCMD_11PARAMS.
 */
forward Action:OnPlayerRunCmd(client, &buttons, &impulse, Float:vel[3], Float:angles[3], &weapon, &subtype, &cmdnum, &tickcount, &seed, mouse[2]);
I already knew that but dont exist a usercmd predefined for use impulse in CS:GO (that I know)
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 04-02-2014 , 10:28   Re: [CS:GO] Sprays v1.1 (you can use sprays in CS:GO)
Reply With Quote #18

Quote:
Originally Posted by Franc1sco View Post
I already knew that but dont exist a usercmd predefined for use impulse in CS:GO (that I know)
For +use there's IN_USE in buttons, impulse 201 is for sprays.
__________________
retired
shavit is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 04-02-2014 , 18:15   Re: [CS:GO] Sprays v1.1 (you can use sprays in CS:GO)
Reply With Quote #19

Quote:
Originally Posted by shavit View Post
For +use there's IN_USE in buttons, impulse 201 is for sprays.
ah.. yeah true, nice idea
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 04-03-2014 , 08:50   Re: [CS:GO] Sprays v1.2 (you can use sprays in CS:GO)
Reply With Quote #20

New version 1.2

-Now you can use USE key (E) for print your spray
-New cvar:
Code:
sm_csgosprays_use 1 // enable/disable USE key for print your spray
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
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 14:31.


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