December 16, 2018, 03:45:30 AM

Author Topic: [SM Plugin][CS:GO] Rate of Fire / RapidFire + Norecoil  (Read 849 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: 127
  • 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 1 Trained Beginner
  • *
  • Posts: 23
  • 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 1 Trained Beginner
  • *
  • Posts: 23
  • 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 :))

Offline Manifest

  • Race & effect creator
  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 1054
  • Country: dk
  • Content creator for the new WCS version by Kami.
Re: [SM Plugin][CS:GO] Rate of Fire / RapidFire + Norecoil
« Reply #6 on: November 27, 2018, 11:26:00 AM »
Hi there Hojjke :)

I was just testing out this plugin on my server, the "wcs_speedfire <wcs_userid> 2.0" works like a charm, it removes recoil and sets the attack speed to twice teh amount, 5.0 for 5 times the speed and no recoil. Honestly great work on this! :-)

The problem comes when you try to turn it off, the wcs_speedfireoff <wcs_userid> part does not seem to work correctly. The recoil stays, I am not sure if the attack speed is changed, I can check that and inform on whether that is changed later on.

Then there's the "wcs_rapidfire <wcs_userid>" this doesn't seem to work at all, it gives some information about some issue with the plugin and changes nothing. Are there any chance you'd be able to fix this plugin as it provides some really nice functionalities for WCS that isn't anywhere else :-)
"BRAVORA: Bruh it is fucking operation crystal night when you are approving races."