1 | ///////////////////////////////////////////////////////////////////////////////
|
---|
2 | //
|
---|
3 | // ## ######
|
---|
4 | // ###### ###
|
---|
5 | // ## ############### Shark 3D Engine (www.shark3d.com)
|
---|
6 | // ########## # # #
|
---|
7 | // ######## Copyright (c) 1996-2006 Spinor GmbH.
|
---|
8 | // ######### # # # All rights reserved.
|
---|
9 | // ## ##########
|
---|
10 | // ##
|
---|
11 | //
|
---|
12 | ///////////////////////////////////////////////////////////////////////////////
|
---|
13 |
|
---|
14 | // Client-side display 3d objects.
|
---|
15 |
|
---|
16 | // Group actor:
|
---|
17 | actor_ident "kit_base.group"
|
---|
18 | actor_param
|
---|
19 | {
|
---|
20 | // Delegate action calls to the children.
|
---|
21 | active 1
|
---|
22 | child_array
|
---|
23 | {
|
---|
24 | ident "kit_engobj.group"
|
---|
25 | param
|
---|
26 | {
|
---|
27 | name "group_display"
|
---|
28 | group_suppl "stdsuppl"
|
---|
29 | group_ident "group:"
|
---|
30 | group_param
|
---|
31 | {
|
---|
32 | env "env"
|
---|
33 | gensuppl "stdsuppl"
|
---|
34 | res "client/model/displaymodel.s3d_inst_run"
|
---|
35 | given_array
|
---|
36 | {
|
---|
37 | item "env"
|
---|
38 | given_ident "env"
|
---|
39 | }
|
---|
40 | {
|
---|
41 | item "stdsuppl"
|
---|
42 | given_ident "gensuppl"
|
---|
43 | }
|
---|
44 | {
|
---|
45 | item ""
|
---|
46 | given_ident "hook"
|
---|
47 | }
|
---|
48 | {
|
---|
49 | item "state"
|
---|
50 | given_ident "state"
|
---|
51 | }
|
---|
52 | {
|
---|
53 | item ""
|
---|
54 | given_ident "sim"
|
---|
55 | }
|
---|
56 | {
|
---|
57 | item ""
|
---|
58 | given_ident "sensorstate"
|
---|
59 | }
|
---|
60 | }
|
---|
61 | }
|
---|
62 | }
|
---|
63 | {
|
---|
64 | ident "kit_base.dispatch"
|
---|
65 | param
|
---|
66 | {
|
---|
67 | name "dispatch"
|
---|
68 | entry_array
|
---|
69 | {
|
---|
70 | cmds "init"
|
---|
71 | targets "loading_pos" "saving_pos"
|
---|
72 | newcmd "disable_pos"
|
---|
73 | }
|
---|
74 | }
|
---|
75 | }
|
---|
76 | // Select the loading object:
|
---|
77 | {
|
---|
78 | ident "kit_engobj.itemeye"
|
---|
79 | param
|
---|
80 | {
|
---|
81 | name "loading_pos"
|
---|
82 | item_actor "group_display"
|
---|
83 | item_name "path:loading"
|
---|
84 | }
|
---|
85 | }
|
---|
86 | {
|
---|
87 | ident "kit_engobj.itemeye"
|
---|
88 | param
|
---|
89 | {
|
---|
90 | name "saving_pos"
|
---|
91 | item_actor "group_display"
|
---|
92 | item_name "simplepos:saving"
|
---|
93 | }
|
---|
94 | }
|
---|
95 | {
|
---|
96 | // Define an animation object for the logo 3d object.
|
---|
97 | ident "kit_engobj.actu"
|
---|
98 | param
|
---|
99 | {
|
---|
100 | name "logo_actu"
|
---|
101 | actu_suppl "stdsuppl"
|
---|
102 | actu_ident "actucyc:"
|
---|
103 | clock "clock"
|
---|
104 | vel 1.0
|
---|
105 | auto_play_forw 0
|
---|
106 | actu_param
|
---|
107 | {
|
---|
108 | env "env"
|
---|
109 | state "state"
|
---|
110 | }
|
---|
111 | }
|
---|
112 | }
|
---|
113 | {
|
---|
114 | // Assign the logo animation object to the logo 3d object
|
---|
115 | // position animation exported from 3D Studio Max.
|
---|
116 | ident "kit_engobj.posactu"
|
---|
117 | param
|
---|
118 | {
|
---|
119 | pos_actor "group_display"
|
---|
120 | pos_names "path:logo"
|
---|
121 | slot 0
|
---|
122 | actu "logo_actu"
|
---|
123 | }
|
---|
124 | }
|
---|
125 | {
|
---|
126 | ident "kit_base.dispatch"
|
---|
127 | param
|
---|
128 | {
|
---|
129 | name "dispatch_logoclick"
|
---|
130 | entry_array
|
---|
131 | {
|
---|
132 | cmds "click"
|
---|
133 | targets "logo_actu"
|
---|
134 | newcmd "get_tex_slot_name"
|
---|
135 | }
|
---|
136 | }
|
---|
137 | }
|
---|
138 | /*{
|
---|
139 | // Evaluate click commands for the logo.
|
---|
140 | ident "kit_engobj.resp"
|
---|
141 | param
|
---|
142 | {
|
---|
143 | state "state_display"
|
---|
144 | item_actor "instset_display"
|
---|
145 | pos_names "logo"
|
---|
146 | kinds "can_click"
|
---|
147 | target "dispatch_logoclick"
|
---|
148 | }
|
---|
149 | }*/
|
---|
150 | {
|
---|
151 | ident "kit_base.oninit"
|
---|
152 | param
|
---|
153 | {
|
---|
154 | target "dispatch"
|
---|
155 | cmd "init"
|
---|
156 | }
|
---|
157 | }
|
---|
158 | }
|
---|