File: CustomZoneSample.bzw

package info (click to toggle)
bzflag 2.4.30-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 26,488 kB
  • sloc: cpp: 150,376; ansic: 3,463; sh: 2,535; makefile: 2,194; perl: 486; python: 260; objc: 246; php: 206
file content (62 lines) | stat: -rw-r--r-- 972 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
options
    +f GM{5}
    +f SW{5}
    +f US{5}
    -set _worldSize 200
end

box
    pos 0 40 -1
    size 20 10 0.1
end

box
    pos 0 -40 -1
    size 20 10 0.1
    rot 90
end

box
    pos 50 50 -0.1
    size 20 10 0.1
    rot 45
end

msgzone
    pos 0 40 0
    size 20 10 0.1
    message "You entered a rectangular zone with the SW flag! I'll take it from you!"
    flag SW
end

msgzone
    pos 0 -40 0
    size 20 10 0.1
    rot 90
    message "You entered a 90 degree rotated rectangular zone with the GM flag! I'll take it from you!"
    flag GM
end

msgzone
    pos 50 50 0
    size 20 10 100
    rot 45
    message "You entered a 45 degree rotated rectangular zone with the US flag! I'll take it from you!"
    flag US
end

arc
    divisions 16
    angle 360
    ratio 1
    pos -50 -50 -1
    size 20 20 0.1
end

msgzone
    pos -50 -50 0
    height 10
    radius 20
    flag GM
    message "You entered a circular zone with the GM flag! I'll take it from you!"
end