Paste #27807: Edit of P#27806 - Untitled Paste

Date: 2016/01/03 23:46:49 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


csgo:
  type: world
  debug: true
  events:
    spawnpoints: 
    l@25,49,-105,world
    l@-1,49,-128,world
    l@-29,49,-128,world
    l@-49,49,-128,world
    l@-1,49,-128,world
    l@-54,49,-93,world
    l@-61,49,-61,world
    l@-56,49,-25,world
    l@-57,49,-18,world
    l@-60,49,19,world
    l@-55,49,47,world
    l@-54,49,67,world
    l@-27,49,85,world
    l@-2,49,85,world
    l@26,49,58,world

    on player death:
    - if <player.has_flag[csgo_player]||false> {
      - determine cancelled passively
      - define victim '<context.entity>'
      - define killer '<context.damager>'
      - define spawnpoint '<script.yaml_key[spawnpoints].random>'
      - define safezone 'l@26,49,48,world'
      - teleport %safezone%
      - adjust <player> 'spectate:%killer%'
      - narrate 'You will respawn in 3 seconds, you are spectating your killer, <def[killer].name>.'
      - wait 3s
      - teleport %spawnpoint%
      - adjust <player> 'spectate:%victim%'
      }

    on player right clicks wall_sign:
      - if <context.location.sign_contents.get[1]> == 'putty' {
        - execute as_op 'shot get putty 1'
        }
      - if <context.location.sign_contents.get[1]> == 'huntingrifle' {
        - execute as_op 'shot get hunting 1'
        }
      - if <context.location.sign_contents.get[1]> == 'carbine' {
        - execute as_op 'shot get carbine 1'
        }
      - if <context.location.sign_contents.get[1]> == 'grenade' {
        - execute as_op 'shot get grenade 1'
        }
      - if <context.location.sign_contents.get[1]> == 'c4' {
        - execute as_op 'shot get c4 1'
        }
      - if <context.location.sign_contents.get[1]> == 'desert eagle' {
        - execute as_op 'shot get deagle 1'
        }
      - if <context.location.sign_contents.get[1]> == 'gauss' {
        - execute as_op 'shot get gauss 1'
        }
      - if <context.location.sign_contents.get[1]> == 'ak-47' {
        - execute as_op 'shot get ak-47 1'
        }
      - if <context.location.sign_contents.get[1]> == 'riotshield' {
        - execute as_op 'shot get riotshield 1'
        }
      - if <context.location.sign_contents.get[1]> == 'toaster' {
        - execute as_op 'shot get toaster 1'
        }
      - if <context.location.sign_contents.get[1]> == 'python' {
        - execute as_op 'shot get python 1'
        }
      - if <context.location.sign_contents.get[1]> == 'flashbang' {
        - execute as_op 'shot get flashbang 1'
        }
      - if <context.location.sign_contents.get[1]> == 'olympia' {
        - execute as_op 'shot get olympia 1'
        }
      - if <context.location.sign_contents.get[1]> == 'airstrike' {
        - execute as_op 'shot get airstrike 1'
        }
      - if <context.location.sign_contents.get[1]> == 'cocopops' {
        - execute as_op 'shot get cocopops 1'
        }
      - if <context.location.sign_contents.get[1]> == 'bazooka' {
        - execute as_op 'shot get bazooka 1'
        }
      - if <context.location.sign_contents.get[1]> == 'trinket' {
        - execute as_op 'shot get trinket 1'
        }
      - if <context.location.sign_contents.get[1]> == 'type95' {
        - execute as_op 'shot get type95 1'
        }
      - if <context.location.sign_contents.get[1]> == 'lobby' {
        - teleport <player> 'l@55,49,-77,world'
        }