Basically it gives game effects to a player (not graphical!), enables a large number of skills/ideas and is error-proof.
Here is the syntax:
Quote
wcs_setfx <TYPE> <USERID> <OPERATOR> <PARAMETER> <TIME>
supported types are: freeze speed god invis(0-255) invisp(in %) health armor gravity disguiser 1stclip 2ndclip longjump
in future, this will replace the "wcs_removefx", because you can do very more with this and it also checks for dead players on delayed effects
looks complicated, but this enables you to do non-trivial skills within one command!
eg.
giving a player 20% more speed, for 10 seconds (STACKABLE and return to previous value after the time)
Quote
es wcs_setfx speed event_var(userid) + 0.2 10
take from an enemy 100 armor for 15 seconds (back to previous armor after this)
Quote
es wcs_setfx armor event_var(userid) - 100 15
set a player to 20% longjump action, for 5 seconds
Quote
es wcs_setfx longjump event_var(userid) = 1.2 5
give a player permanent +30 bullets for his primary weapon (works after reload, if eventscripts_noisy=1)
Quote
es wcs_setfx 1stclip event_var(userid) + 30 0
disguise for 30 seconds (after, switch back)
Quote
es wcs_setfx disguise event_var(userid) = 1 30
the special about this is, it doesn't raise ERRORS in console log, it checks all values for correctness (eg. invisibility percent between 0-100), enables giving and taking, is stackable and supports timed effects.
So you can have a race with 70% invis, and if you buy a shopitem that gives you +50% invis for 30 seconds, you are complete invis for this time and AFTER you switch back to 70%
be prepared to code some nice skills
[note for the pro's: this enables safe skill coding with different aspects and is very good for fast balancing races. Also, beginners are now able to create not so easy skills, like timed effects or enable stacking of skills]






Germany

Logged




Lithuania
Denmark
United States
