November 18, 2018, 05:43:14 AM

Author Topic: [SM Plugin][CS:GO] Rate of Fire / RapidFire + Norecoil  (Read 557 times)

Offline Hojjke

  • Level 4 Intermediate
  • ****
  • Posts: 91
  • Country: ru
  • I <3 WCS :)
[SM Plugin][CS:GO] Rate of Fire / RapidFire + Norecoil
« on: September 18, 2018, 04:13:28 PM »
Greets, since there is no function for RoF and Rapidfire in the WCS atm, decided to make this plugin for CS:GO

Descr:

wcs_speedfire <userid> <speed of attack> - enables speed attacks for player
ex:
Code: [Select]
wcs_speedfire <wcs_userid> 2.0
wcs_speedfireoff <userid> - disables speed attacks for player
ex:
Code: [Select]
wcs_speedfireoff <wcs_userid>
wcs_rapidfire - enables/disables rapidfire + norecoil for a player
ex:

Code: [Select]
wcs_rapidfire <wcs_userid>
ex in block's code, enabling rapidfire for 4 seconds:
Code: [Select]
es wcs_rapidfire server_var(wcs_userid)
es_delayed 4 es wcs_rapidfire server_var(wcs_userid)

Enjoy :)

Offline WCS - Wookie

  • Level 6 Experienced
  • *****
  • Posts: 123
  • Country: nz
  • Qualified Teacher, working in IT and loving WCS.
Re: [SM Plugin][CS:GO] Rate of Fire / RapidFire + Norecoil
« Reply #1 on: September 19, 2018, 05:52:46 AM »
So would the rapidfire setting work for knifes as well? I think something like this could be used for an ultimate ability that does a crazy amount of dps.
If you like WCS and are from AUS/NZ drop by our server to take a look.


Offline Hojjke

  • Level 4 Intermediate
  • ****
  • Posts: 91
  • Country: ru
  • I <3 WCS :)
Re: [SM Plugin][CS:GO] Rate of Fire / RapidFire + Norecoil
« Reply #2 on: September 19, 2018, 01:21:58 PM »
So would the rapidfire setting work for knifes as well? I think something like this could be used for an ultimate ability that does a crazy amount of dps.

yes, it works perfectly :^)

Offline Drellannor

  • Level 0 Beginner
  • Posts: 15
  • Country: fr
Re: [SM Plugin][CS:GO] Rate of Fire / RapidFire + Norecoil
« Reply #3 on: November 07, 2018, 09:58:54 PM »
Hello,

Really happy to have this script, but i've some problem to make it working for a custom race.
What i done exactly :

put wcs_fire.smx to sourcemod/plugins
put wcs_fire.sp to sourcemod/scripting

Edited WCS svar for using a new svar(idk if it's enough to use it) : wcs_sfire
Skill leveling in my race : es_xset wcs_sfire 1.1|es_xset wcs_sfire 1.2|
I use it as a player_spawn
Specified the block path in the race, and created this command block :

es wcs_speedfire server_var(wcs_userid) server_var(wcs_sfire)
But nothing happening also tried to change "the server_var(wcs_userid)" to "server_var(userid)" (idk if the server could miss the userid, every scripts use (userid) and not wcs_userid but not fixed anyway.

I'm really a developper and not a pro at modifying WCS maybe i missed something.
If you have advice ^^.

Offline Kami

  • Developer
  • Level 7 Expert
  • *****
  • Posts: 888
  • Country: de
  • Pokemon Master!
Re: [SM Plugin][CS:GO] Rate of Fire / RapidFire + Norecoil
« Reply #4 on: November 08, 2018, 05:36:11 AM »
Try


es wcs_speedfire event_var(userid) server_var(wcs_sfire)


server_var(wcs_userid) is used in ultimates and abilities.

If you are using the userid in an event (like player_spawn) it is event_var(userid)

Offline Drellannor

  • Level 0 Beginner
  • Posts: 15
  • Country: fr
Re: [SM Plugin][CS:GO] Rate of Fire / RapidFire + Norecoil
« Reply #5 on: November 08, 2018, 08:36:33 PM »
That's working !

Will take note about this event_var for player_spawn, thanks !

Awesome script :))