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 | // Definition of the player.
|
---|
15 | //
|
---|
16 | // In this case, the player is a player having a walk collision detection
|
---|
17 | // and can be controlled by the human player.
|
---|
18 | //
|
---|
19 | // The player is not defined directly, but only a suppl for the player.
|
---|
20 | // The reason for this is that not only one player must be created,
|
---|
21 | // but a new player for every player which logs into the server.
|
---|
22 | // As long as no client logs into a server, no player is created.
|
---|
23 | // Each time a player logs into the server, the player suppl
|
---|
24 | // is used to create a player.
|
---|
25 |
|
---|
26 |
|
---|
27 | // Since each dsc-file formally can only contain a single actor,
|
---|
28 | // we use the group actor to define more than one actor.
|
---|
29 | actor_ident "kit_base.group"
|
---|
30 | actor_param
|
---|
31 | {
|
---|
32 | active 1
|
---|
33 | child_array
|
---|
34 | {
|
---|
35 | ident "kit_base.deleg"
|
---|
36 | param
|
---|
37 | {
|
---|
38 | name ""
|
---|
39 | deleg_name "env"
|
---|
40 | deleg_target "^env"
|
---|
41 | allow_no_target 0
|
---|
42 | enabled 1
|
---|
43 | }
|
---|
44 | }
|
---|
45 | {
|
---|
46 | ident "kit_base.deleg"
|
---|
47 | param
|
---|
48 | {
|
---|
49 | name ""
|
---|
50 | deleg_name "stdsuppl"
|
---|
51 | deleg_target "^stdsuppl"
|
---|
52 | allow_no_target 0
|
---|
53 | enabled 1
|
---|
54 | }
|
---|
55 | }
|
---|
56 | {
|
---|
57 | ident "kit_base.deleg"
|
---|
58 | param
|
---|
59 | {
|
---|
60 | name ""
|
---|
61 | deleg_name "state_world"
|
---|
62 | deleg_target "^state_world"
|
---|
63 | allow_no_target 0
|
---|
64 | enabled 1
|
---|
65 | }
|
---|
66 | }
|
---|
67 | {
|
---|
68 | ident "kit_base.deleg"
|
---|
69 | param
|
---|
70 | {
|
---|
71 | name ""
|
---|
72 | deleg_name "sim_world"
|
---|
73 | deleg_target "^sim_world"
|
---|
74 | allow_no_target 0
|
---|
75 | enabled 1
|
---|
76 | }
|
---|
77 | }
|
---|
78 | {
|
---|
79 | ident "kit_engobj.group"
|
---|
80 | param
|
---|
81 | {
|
---|
82 | name "group_player"
|
---|
83 | group_suppl "^stdsuppl"
|
---|
84 | group_ident "group:"
|
---|
85 | group_param
|
---|
86 | {
|
---|
87 | env "env"
|
---|
88 | gensuppl "stdsuppl"
|
---|
89 | given_array
|
---|
90 | {
|
---|
91 | item "env"
|
---|
92 | given_ident "env"
|
---|
93 | }
|
---|
94 | {
|
---|
95 | item "stdsuppl"
|
---|
96 | given_ident "gensuppl"
|
---|
97 | }
|
---|
98 | {
|
---|
99 | item "^player_spawn"
|
---|
100 | given_ident "hook"
|
---|
101 | }
|
---|
102 | {
|
---|
103 | item "state_world"
|
---|
104 | given_ident "state"
|
---|
105 | }
|
---|
106 | {
|
---|
107 | item "sim_world"
|
---|
108 | given_ident "sim"
|
---|
109 | }
|
---|
110 | {
|
---|
111 | item ""
|
---|
112 | given_ident "sensorstate"
|
---|
113 | }
|
---|
114 | res "level_shmap/model/"
|
---|
115 | & "playermodel.s3d_inst_run"
|
---|
116 | }
|
---|
117 | }
|
---|
118 | }
|
---|
119 | {
|
---|
120 | // Include the character actors for this level.
|
---|
121 | // It is defined after the character bag
|
---|
122 | // since this dsc file refers the bag actor.
|
---|
123 | ident "kit_base.extern"
|
---|
124 | param
|
---|
125 | {
|
---|
126 | // Delegate action calls to the child:
|
---|
127 | active 1
|
---|
128 | name "levelplayer_extern"
|
---|
129 | res "level_shmap/actor/levelplayer.s3d_actor_run"
|
---|
130 | watch_target "levelplayer_extern"
|
---|
131 | watch_cmd "load_current"
|
---|
132 | }
|
---|
133 | }
|
---|
134 | }
|
---|