Created
June 27, 2022 07:30
-
-
Save JuniorDjjr/53b70bba5213cb7e988a18a11313f7d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SCRIPT_START | |
{ | |
LVAR_INT scplayer | |
LVAR_FLOAT x y z | |
GET_PLAYER_CHAR 0 (scplayer) | |
WHILE TRUE | |
WAIT 0 | |
GET_PLAYER_CHAR 0 scplayer | |
GOSUB ProcessPlayer | |
IF IS_2PLAYER_GAME_GOING_ON | |
GET_PLAYER_CHAR 1 scplayer | |
GOSUB ProcessPlayer | |
ENDIF | |
ENDWHILE | |
ProcessPlayer: | |
IF IS_CURRENT_CHAR_WEAPON scplayer WEAPONTYPE_MOLOTOV | |
GET_OFFSET_FROM_CHAR_IN_WORLD_COORDS scplayer 0.5 0.5 0.1 (x y z) | |
DRAW_SHADOW 3 x y z 0.0 6.0 1 50 25 0 | |
DRAW_LIGHT_WITH_RANGE x y z 255 150 0 5.0 | |
ENDIF | |
RETURN | |
} | |
SCRIPT_END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment