Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;ON SPAWN;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;Sounds to link;;;;;;;;;;
- {link_sound "rifle" "weapon/shot/rifle"}
- {link_sound "smg" "weapon/shot/smg/type2smg_burst"}
- {link_sound "pistol" "weapon/shot/pistol"}
- {link_sound "mgun" "weapon/shot/mgun/bar_burst"}
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;ON SPAWN END;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;DIE WITH BLOOD;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;Change this to any number
- {if rand 0.9 {tags add "last_shot"}} ;When units die, their hand can twitch and the gun will fire, like in those action movies
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- {if tagged "riflew" ;last_shot scarface
- {if rand 0.3 {delay 0.1 {call "last_shot"}}
- else rand 0.3 {delay 0.4 {call "last_shot"}}
- else {delay 0.8 {call "last_shot"}}}}
- {if tagged "pistolw"
- {if rand 0.3 {delay 0.1 {call "last_shot"}}
- else rand 0.3 {delay 0.4 {call "last_shot"}}
- else {delay 0.8 {call "last_shot"}}}}
- {if tagged "smgw"
- {if rand 0.3 {delay 0.1 {call "last_shot"}{delay 0.1 {call "last_shot"}}{delay 0.2 {call "last_shot"}}{delay 0.3 {call "last_shot"}}{delay 0.4 {call "last_shot"}}{delay 0.5 {call "last_shot"}}{delay 0.6 {call "last_shot"}}{delay 0.7 {call "last_shot"}}{delay 0.8 {call "last_shot"}}}
- else rand 0.3 {delay 0.4 {call "last_shot"}{delay 0.1 {call "last_shot"}}{delay 0.2 {call "last_shot"}}{delay 0.3 {call "last_shot"}}{delay 0.4 {call "last_shot"}}{delay 0.5 {call "last_shot"}}{delay 0.6 {call "last_shot"}}{delay 0.7 {call "last_shot"}}{delay 0.8 {call "last_shot"}}}
- else {delay 0.8 {call "last_shot"}{delay 0.1 {call "last_shot"}}{delay 0.2 {call "last_shot"}}{delay 0.3 {call "last_shot"}}{delay 0.4 {call "last_shot"}}{delay 0.5 {call "last_shot"}}{delay 0.6 {call "last_shot"}}{delay 0.7 {call "last_shot"}}{delay 0.8 {call "last_shot"}}}
- }}
- {if tagged "mgunw"
- {if rand 0.3 {delay 0.1 {call "last_shot"}{delay 0.1 {call "last_shot"}}{delay 0.2 {call "last_shot"}}{delay 0.3 {call "last_shot"}}{delay 0.4 {call "last_shot"}}{delay 0.5 {call "last_shot"}}{delay 0.6 {call "last_shot"}}{delay 0.7 {call "last_shot"}}{delay 0.8 {call "last_shot"}}}
- else rand 0.3 {delay 0.4 {call "last_shot"}{delay 0.1 {call "last_shot"}}{delay 0.2 {call "last_shot"}}{delay 0.3 {call "last_shot"}}{delay 0.4 {call "last_shot"}}{delay 0.5 {call "last_shot"}}{delay 0.6 {call "last_shot"}}{delay 0.7 {call "last_shot"}}{delay 0.8 {call "last_shot"}}}
- else {delay 0.8 {call "last_shot"}{delay 0.1 {call "last_shot"}}{delay 0.2 {call "last_shot"}}{delay 0.3 {call "last_shot"}}{delay 0.4 {call "last_shot"}}{delay 0.5 {call "last_shot"}}{delay 0.6 {call "last_shot"}}{delay 0.7 {call "last_shot"}}{delay 0.8 {call "last_shot"}}}
- }}
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;DIE WITH BLOOD END;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;Place anywhere;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;
- {on "last_shot" ; this is for the people who have the jamming tutorial
- {if tagged "riflew" {if tagged "last_shot" {call "fire_gundead"}}}
- {if tagged "smgw" {if tagged "last_shot" {call "fire_gundead"}}}
- {if tagged "pistolw" {if tagged "last_shot" {call "fire_gundead"}}}
- {if tagged "mgunw" {if tagged "last_shot" {call "fire_gundead"}}}
- }
- {on "fire_gundead"
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SOUNDS FOR WEAPON TYPE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- {if tagged "riflew" {play_sound "rifle"} } ;will play weapon shot sounds
- {if tagged "smgw" {if rand 0.75 {play_sound "smg"}} }
- {if tagged "pistolw" {play_sound "pistol"}}
- {if tagged "mgunw"{if rand 0.75 {play_sound "mgun"}} }
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;Fake Muzzle Flash;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- {view show "flashbarrel"}{view start "flashbarrel"}{delay 0.5{view pause "flashbarrel"}{view stop "flashbarrel"} } ;firing effect
- }
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;Place anywhere end;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;link_weapon;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- (define "tags_remove" ; so weapons switch their data on weapon switch.
- {tags remove "pistolw mgunw riflew shotgunw smgw sniperw flamew"} ;remove old tags
- {tags add %weap} ;
- )
- {on "link_weapon"
- {if stuff "pistol"
- {add_view "flash_gun_small" "flashbarrel" "foresight3"}
- {add_view "shell_smg" "shell" "FXshell"}
- ("tags_remove" weap("pistolw")) ;
- else stuff "shotgun"
- {add_view "flash_gun_big" "flashbarrel" "foresight3"}
- {add_view "shell_shotgun" "shell" "FXshell"}
- ("tags_remove" weap("shotgunw")) ;
- else stuff "rifle"
- {add_view "flash_gun_small" "flashbarrel" "foresight3"}
- {add_view "shell_mgun" "shell" "FXshell"}
- ("tags_remove" weap("riflew")) ;
- else stuff "smg"
- {add_view "flash_gun_small" "flashbarrel" "foresight3"}
- {add_view "shell_smg" "shell" "FXshell"}
- ("tags_remove" weap("smgw")) ;
- else stuff "mgun"
- {add_view "flash_gun_big" "flashbarrel" "foresight3"}
- {add_view "shell_mgun" "shell" "FXshell"}
- ("tags_remove" weap("mgunw")) ;
- else stuff "flame_thrower"
- {add_view "flamer_fire" "flame" "foresight3"}
- {add_view "flamer_fire_barrel" "fire" "foresight3"}
- {view show "fire"}
- {view start "fire"}
- ("tags_remove" weap("flamew")) ;
- else
- {view hide "flashbarrel"}
- {view pause "flashbarrel"}
- {view pause "flame"}
- }
- }
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;link_weapon end;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement