fysplane/chaingunmode.lua

21 lines
467 B
Lua
Raw Normal View History

2014-10-18 22:46:27 +00:00
Class = require 'hump/class'
require 'powerupmode'
require 'settings'
ChaingunMode = Class{
__include = PowerUpMode,
init = function(self)
PowerUpMode.init(self, 10)
end;
activate = function(self, plane)
PowerUpMode.activate(self, plane)
plane.machinegun:setType("chaingun")
end;
deactivate = function(self, plane)
PowerUpMode.deactivate(self, plane)
plane.machinegun:setType("vickers77")
end;
}