scripts restructured; teleswitch now works
[dd2d.git] / data / scripts / item / shotgun.dacs
blob73fc9ed23bf1cc2e1f5e3b59c7ca084978fc97b9
1 module itemShotgun is "item" "Shotgun";
3 import apiActor;
4 import aiItem;
7 // setup actor animations
8 public void initializeAnim () {
9   animClearFrames("item", "Shotgun", "sleep");
10   animAddFrame("item", "Shotgun", "sleep", ACTOR_DIR_LEFT, "sprites/items/shota0.vga");
14 // setup actor properties
15 public void initialize (Actor me) {
16   // `classname` and `classtype` will be set by the engine
17   //me.classname = "Shotgun";
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);