Paste #42094: YA BITCHES

Date: 2017/05/21 10:32:39 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18


on player clicks with DemomanMIRV:
    - if <queue.list.filter[script.name.is[==].to[Ingame]].is_empty> {
      - determine cancelled
      }
    - shoot small_fireball o:<player> gravity:0 height:0 speed:<s@Config.yaml_key[classvariables.Demoman.MIRVFireballVelocity]> script:MIRV save:fireball
    - playsound <player.location> sound:ENTITY_GHAST_SHOOT volume:2 pitch:0.5
    - flag server <entry[fireball].shot_entities.get[1]>:<player>
    - take i@DemomanMIRV quantity:1 from:<player.inventory>

MIRV:
  type: task
  debug: true
  script:
  - define player <server.flag[<def[shot_entities].get[1]>]>
  - flag server <def[shot_entities]>:!
  - ^repeat 8:
    - spawn primed_tnt[fuse_ticks=<s@Config.yaml_key[classvariables.Demoman.tntfuse]>;velocity=<s@Config.yaml_key[classvariables.Demoman.MIRVVelocities.<def[value]>].as_location.mul[<s@Config.yaml_key[classvariables.Demoman.MIRVTNTSpeed]>]>] <def[location]> save:<def[player]>
    - flag <entry[<def[player]>].spawned_entities.get[1]> id:<def[player]>