source: GTP/trunk/App/Demos/Illum/Shark3D/version164x12u/IllumDemo/src/res/level/actor/levelplayerbasis.s3d_actor @ 2196

Revision 2196, 3.6 KB checked in by szirmay, 17 years ago (diff)
Line 
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.
29actor_ident "kit_base.group"
30actor_param
31{
32    // Delegate action calls to the children.
33    active 1
34    child_array
35    {
36        ident "kit_base.deleg"
37        param
38        {
39            name ""
40            deleg_name "env"
41            deleg_target "^env"
42            allow_no_target 0
43            enabled 1
44        }
45    }
46    {
47        ident "kit_base.deleg"
48        param
49        {
50            name ""
51            deleg_name "stdsuppl"
52            deleg_target "^stdsuppl"
53            allow_no_target 0
54            enabled 1
55        }
56    }
57    {
58        ident "kit_base.deleg"
59        param
60        {
61            name ""
62            deleg_name "state_world"
63            deleg_target "^state_world"
64            allow_no_target 0
65            enabled 1
66        }
67    }
68    {
69        ident "kit_base.deleg"
70        param
71        {
72            name ""
73            deleg_name "sim_world"
74            deleg_target "^sim_world"
75            allow_no_target 0
76            enabled 1
77        }
78    }
79    {
80        ident "kit_engobj.group"
81        param
82        {
83            name "group_player"
84            group_suppl "^stdsuppl"
85            group_ident "group:"
86            group_param
87            {
88                env "env"
89                gensuppl "stdsuppl"
90                given_array
91                {
92                    item "env"
93                    given_ident "env"
94                }
95                {
96                    item "stdsuppl"
97                    given_ident "gensuppl"
98                }
99                {
100                    item "^player_spawn"
101                    given_ident "hook"
102                }
103                {
104                    item "state_world"
105                    given_ident "state"
106                }
107                {
108                    item "sim_world"
109                    given_ident "sim"
110                }
111                {
112                    item ""
113                    given_ident "sensorstate"
114                }
115                res "level/model/"
116                    & "playermodel.s3d_inst_run"
117            }
118        }
119    }
120    {
121        // Include the character actors for this level.
122        // It is defined after the character bag
123        // since this dsc file refers the bag actor.
124        ident "kit_base.extern"
125        param
126        {
127            active 1
128            name "levelplayer_extern"
129            res "level/actor/levelplayer.s3d_actor_run"
130            watch_target "levelplayer_extern"
131            watch_cmd "load_current"
132        }
133    }
134}
Note: See TracBrowser for help on using the repository browser.