|
| 1 | +# /*==LICENSE==* |
| 2 | +# |
| 3 | +# CyanWorlds.com Engine - MMOG client, server and tools |
| 4 | +# Copyright (C) 2011 Cyan Worlds, Inc. |
| 5 | +# |
| 6 | +# This program is free software: you can redistribute it and/or modify |
| 7 | +# it under the terms of the GNU General Public License as published by |
| 8 | +# the Free Software Foundation, either version 3 of the License, or |
| 9 | +# (at your option) any later version. |
| 10 | +# |
| 11 | +# This program is distributed in the hope that it will be useful, |
| 12 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | +# GNU General Public License for more details. |
| 15 | +# |
| 16 | +# You should have received a copy of the GNU General Public License |
| 17 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 18 | +# |
| 19 | +# Additional permissions under GNU GPL version 3 section 7 |
| 20 | +# |
| 21 | +# If you modify this Program, or any covered work, by linking or |
| 22 | +# combining it with any of RAD Game Tools Bink SDK, Autodesk 3ds Max SDK, |
| 23 | +# NVIDIA PhysX SDK, Microsoft DirectX SDK, OpenSSL library, Independent |
| 24 | +# JPEG Group JPEG library, Microsoft Windows Media SDK, or Apple QuickTime SDK |
| 25 | +# (or a modified version of those libraries), |
| 26 | +# containing parts covered by the terms of the Bink SDK EULA, 3ds Max EULA, |
| 27 | +# PhysX SDK EULA, DirectX SDK EULA, OpenSSL and SSLeay licenses, IJG |
| 28 | +# JPEG Library README, Windows Media SDK EULA, or QuickTime SDK EULA, the |
| 29 | +# licensors of this Program grant you additional |
| 30 | +# permission to convey the resulting work. Corresponding Source for a |
| 31 | +# non-source form of such a combination shall include the source code for |
| 32 | +# the parts of OpenSSL and IJG JPEG Library used as well as that of the covered |
| 33 | +# work. |
| 34 | +# |
| 35 | +# You can contact Cyan Worlds, Inc. by email [email protected] |
| 36 | +# or by snail mail at: |
| 37 | +# Cyan Worlds, Inc. |
| 38 | +# 14617 N Newport Hwy |
| 39 | +# Mead, WA 99021 |
| 40 | +# |
| 41 | +# *==LICENSE==*/ |
1 | 42 | #===============================================
|
2 | 43 | # Changing an SDL record? Be sure to leave the
|
3 | 44 | # legacy record intact and make changes in
|
|
12 | 53 | #
|
13 | 54 | # Defines a standard anim stage (used by the genericBrain)
|
14 | 55 | #
|
| 56 | + |
15 | 57 | STATEDESC standardStage
|
16 | 58 | {
|
17 |
| - VERSION 2 |
18 |
| - VAR STRING32 name[1] |
19 |
| - VAR SHORT numLoops[1] DEFAULT=0 # -1=loopForever |
20 |
| - VAR BYTE forward[1] DEFAULT=0 # 0=none, 1=kbd, 2=auto |
21 |
| - VAR BYTE backward[1] DEFAULT=0 # 0=none, 1=kbd |
22 |
| - VAR BYTE stageAdvance[1] DEFAULT=0 # 0=none, 1=auto |
23 |
| - VAR BYTE stageRegress[1] DEFAULT=0 # 0=none, 1=auto |
24 |
| - VAR BOOL notifyEnter[1] DEFAULT=false |
25 |
| - VAR BOOL notifyLoop[1] DEFAULT=false |
26 |
| - VAR BOOL notifyStageAdvance[1] DEFAULT=false |
27 |
| - VAR BOOL notifyStageRegress[1] DEFAULT=false |
28 |
| - VAR BOOL useGlobalCoords[1] DEFAULT=false |
29 |
| - VAR FLOAT localTime[1] DEFAULT=0 |
30 |
| - VAR FLOAT length[1] DEFAULT=0 |
31 |
| - VAR SHORT currentLoop[1] DEFAULT=0 |
32 |
| - VAR BOOL isAttached[1] DEFAULT=false |
33 |
| -} |
34 |
| -STATEDESC standardStage |
35 |
| -{ |
36 |
| - VERSION 3 |
37 |
| - VAR STRING32 name[1] |
38 |
| - VAR SHORT numLoops[1] DEFAULT=0 # -1=loopForever |
39 |
| - VAR BYTE forward[1] DEFAULT=0 # 0=none, 1=kbd, 2=auto |
40 |
| - VAR BYTE backward[1] DEFAULT=0 # 0=none, 1=kbd |
41 |
| - VAR BYTE stageAdvance[1] DEFAULT=0 # 0=none, 1=auto |
42 |
| - VAR BYTE stageRegress[1] DEFAULT=0 # 0=none, 1=auto |
43 |
| - VAR BOOL notifyEnter[1] DEFAULT=false |
44 |
| - VAR BOOL notifyLoop[1] DEFAULT=false |
45 |
| - VAR BOOL notifyStageAdvance[1] DEFAULT=false |
46 |
| - VAR BOOL notifyStageRegress[1] DEFAULT=false |
47 |
| - VAR BOOL useGlobalCoords[1] DEFAULT=false |
48 |
| - VAR FLOAT localTime[1] DEFAULT=0 |
49 |
| - VAR SHORT currentLoop[1] DEFAULT=0 |
50 |
| - VAR BOOL isAttached[1] DEFAULT=false |
| 59 | + VERSION 3 |
| 60 | + VAR STRING32 name[1] |
| 61 | + VAR SHORT numLoops[1] DEFAULT=0 # -1=loopForever |
| 62 | + VAR BYTE forward[1] DEFAULT=0 # 0=none, 1=kbd, 2=auto |
| 63 | + VAR BYTE backward[1] DEFAULT=0 # 0=none, 1=kbd |
| 64 | + VAR BYTE stageAdvance[1] DEFAULT=0 # 0=none, 1=auto |
| 65 | + VAR BYTE stageRegress[1] DEFAULT=0 # 0=none, 1=auto |
| 66 | + VAR BOOL notifyEnter[1] DEFAULT=false |
| 67 | + VAR BOOL notifyLoop[1] DEFAULT=false |
| 68 | + VAR BOOL notifyStageAdvance[1] DEFAULT=false |
| 69 | + VAR BOOL notifyStageRegress[1] DEFAULT=false |
| 70 | + VAR BOOL useGlobalCoords[1] DEFAULT=false |
| 71 | + VAR FLOAT localTime[1] DEFAULT=0 |
| 72 | + VAR SHORT currentLoop[1] DEFAULT=0 |
| 73 | + VAR BOOL isAttached[1] DEFAULT=false |
51 | 74 | }
|
52 | 75 |
|
53 | 76 | #
|
54 | 77 | # State for the plAvBrainGeneric
|
55 | 78 | #
|
56 |
| -STATEDESC genericBrain |
| 79 | +STATEDESC genericBrain |
57 | 80 | {
|
58 |
| - VERSION 3 |
59 |
| - VAR BOOL noBrain[1] DEFAULT=true # set if not a brain |
60 |
| - VAR $standardStage stages[] |
61 |
| - VAR BYTE currentStage[1] DEFAULT=0 |
62 |
| - VAR BOOL freezePhysicalAtEnd[1] DEFAULT=false |
63 |
| - VAR PLKEY callbackRcvr[1] |
64 |
| - VAR BOOL movingForward[1] DEFAULT=true |
65 |
| - VAR BYTE exitFlags[1] DEFAULT=0 |
66 |
| - VAR BYTE type[1] # could be byte |
67 |
| - VAR BYTE mode[1] # could be byte |
68 |
| - VAR FLOAT fadeIn[1] DEFAULT=1.0 |
69 |
| - VAR FLOAT fadeOut[1] DEFAULT=1.0 |
70 |
| - VAR BYTE moveMode[1] # could be byte |
71 |
| - VAR BYTE bodyUsage[1] # could be byte |
| 81 | + VERSION 3 |
| 82 | + VAR BOOL noBrain[1] DEFAULT=true # set if not a brain |
| 83 | + VAR $standardStage stages[] |
| 84 | + VAR BYTE currentStage[1] DEFAULT=0 |
| 85 | + VAR BOOL freezePhysicalAtEnd[1] DEFAULT=false |
| 86 | + VAR PLKEY callbackRcvr[1] |
| 87 | + VAR BOOL movingForward[1] DEFAULT=true |
| 88 | + VAR BYTE exitFlags[1] DEFAULT=0 |
| 89 | + VAR BYTE type[1] # could be byte |
| 90 | + VAR BYTE mode[1] # could be byte |
| 91 | + VAR FLOAT fadeIn[1] DEFAULT=1.0 |
| 92 | + VAR FLOAT fadeOut[1] DEFAULT=1.0 |
| 93 | + VAR BYTE moveMode[1] # could be byte |
| 94 | + VAR BYTE bodyUsage[1] # could be byte |
72 | 95 | }
|
73 | 96 |
|
74 | 97 | #
|
75 | 98 | # State for the plAvBrainClimb
|
76 | 99 | #
|
77 | 100 | STATEDESC climbBrain
|
78 | 101 | {
|
79 |
| - VERSION 1 |
80 |
| - VAR INT curMode[1] |
81 |
| - VAR INT nextMode[1] |
82 |
| - VAR INT allowedDirections[1] |
83 |
| - VAR INT allowedDismounts[1] |
84 |
| - VAR FLOAT vertProbeLength[1] |
85 |
| - VAR FLOAT horizProbeLength[1] |
86 |
| - VAR BOOL curStageAttached[1] |
87 |
| - VAR INT curStage[1] |
88 |
| - VAR FLOAT curStageTime[1] |
89 |
| - VAR FLOAT curStageStrength[1] |
90 |
| - VAR BOOL exitStageAttached[1] |
91 |
| - VAR INT exitStage[1] |
92 |
| - VAR FLOAT exitStageTime[1] |
93 |
| - VAR BOOL exitStageStrength[1] |
| 102 | + VERSION 1 |
| 103 | + VAR INT curMode[1] |
| 104 | + VAR INT nextMode[1] |
| 105 | + VAR INT allowedDirections[1] |
| 106 | + VAR INT allowedDismounts[1] |
| 107 | + VAR FLOAT vertProbeLength[1] |
| 108 | + VAR FLOAT horizProbeLength[1] |
| 109 | + VAR BOOL curStageAttached[1] |
| 110 | + VAR INT curStage[1] |
| 111 | + VAR FLOAT curStageTime[1] |
| 112 | + VAR FLOAT curStageStrength[1] |
| 113 | + VAR BOOL exitStageAttached[1] |
| 114 | + VAR INT exitStage[1] |
| 115 | + VAR FLOAT exitStageTime[1] |
| 116 | + VAR BOOL exitStageStrength[1] |
94 | 117 | }
|
95 | 118 |
|
96 | 119 | STATEDESC driveBrain
|
97 | 120 | {
|
98 |
| - VERSION 1 |
99 |
| - VAR INT unUsed[1] |
| 121 | + VERSION 1 |
| 122 | + VAR INT unUsed[1] |
100 | 123 | }
|
101 | 124 |
|
102 | 125 | #
|
103 | 126 | # A pseudo-union structure. It looks like it contains several varying-length
|
104 | 127 | # arrays, but in reality only one of them has anything in it, and only one
|
105 | 128 | # brain at that.
|
106 |
| -STATEDESC brainUnion |
| 129 | +STATEDESC brainUnion |
107 | 130 | {
|
108 |
| - VERSION 1 |
109 |
| - VAR $genericBrain fGenericBrain[] |
110 |
| - VAR $climbBrain fClimbBrain[] |
111 |
| - VAR $driveBrain fDriveBrain[] |
| 131 | + VERSION 1 |
| 132 | + VAR $genericBrain fGenericBrain[] |
| 133 | + VAR $climbBrain fClimbBrain[] |
| 134 | + VAR $driveBrain fDriveBrain[] |
112 | 135 | }
|
113 | 136 |
|
114 | 137 | #
|
115 | 138 | # The base block contains state for the plAvBrainHuman (which all avatars must have)
|
116 | 139 | # and a variable-length state of brains of varying type.
|
117 | 140 | #
|
118 |
| -STATEDESC avatar |
119 |
| -{ |
120 |
| - VERSION 5 |
121 |
| - VAR $brainUnion brainStack[] |
122 |
| - VAR BYTE invisibilityLevel[1] DEFAULT=0 # 0 means visible, >0 is CCR level of invisibility |
123 |
| -} |
124 |
| - |
125 |
| -STATEDESC avatar |
126 |
| -{ |
127 |
| - VERSION 6 |
128 |
| - VAR $brainUnion brainStack[] |
129 |
| - VAR BYTE invisibilityLevel[1] DEFAULT=0 # 0 means visible, >0 is CCR level of invisibility |
130 |
| - |
131 |
| - VAR POINT3 position[1] DEFAULT=(0,0,0) |
132 |
| - VAR FLOAT rotation[1] DEFAULT=0.0 |
133 |
| - VAR PLKEY subworld[1] |
134 |
| -} |
135 | 141 |
|
136 | 142 | STATEDESC avatar
|
137 | 143 | {
|
138 |
| - VERSION 7 |
139 |
| - VAR $brainUnion brainStack[] |
140 |
| - VAR BYTE invisibilityLevel[1] DEFAULT=0 # 0 means visible, >0 is CCR level of invisibility |
| 144 | + VERSION 7 |
| 145 | + VAR $brainUnion brainStack[] |
| 146 | + VAR BYTE invisibilityLevel[1] DEFAULT=0 # 0 means visible, >0 is CCR level of invisibility |
141 | 147 | }
|
142 | 148 |
|
143 | 149 | STATEDESC avatarPhysical
|
144 | 150 | {
|
145 |
| - VERSION 1 |
| 151 | + VERSION 1 |
146 | 152 |
|
147 |
| - VAR POINT3 position[1] DEFAULT=(0,0,0) |
148 |
| - VAR FLOAT rotation[1] DEFAULT=0.0 |
149 |
| - VAR PLKEY subworld[1] |
| 153 | + VAR POINT3 position[1] DEFAULT=(0,0,0) |
| 154 | + VAR FLOAT rotation[1] DEFAULT=0.0 |
| 155 | + VAR PLKEY subworld[1] |
150 | 156 | }
|
0 commit comments