scripts restructured; teleswitch now works
[dd2d.git] / data / scripts / item / bfg9000.dacs
blob5b67c0a72d72a8ba84e3c7f4998bc250cf8c2504
1 module itemBfg9000 is "item" "BFG9000";
3 import apiActor;
4 import aiItem;
7 // setup actor animations
8 public void initializeAnim () {
9   animClearFrames("item", "BFG9000", "sleep");
10   animAddFrame("item", "BFG9000", "sleep", ACTOR_DIR_LEFT, "sprites/items/bfuga0.vga");
14 // setup actor properties
15 public void initialize (Actor me) {
16   // `classname` and `classtype` will be set by the engine
17   //me.classname = "BFG9000";
18   //me.classtype = "item";
19   me.radius = 10;
20   me.height = 8;
21   me.actorSetAnimation("sleep");
22   me.flags |= AF_NOGRAVITY;
26 // thinker
27 public void think (Actor me) {
28   itemThink(me);