-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added -lol, -laugh and -l. Does what you think it does - Added grunt sounds to various abilities, non gachi. - If alien dies before 5 minutes it now repicks - Added unique skins to Moderators, Developers and map supporters - Added new **Fuller Auto** ability to minigun. It's like Fulla uto, except fuller. Minor Changes: - Scanning for players lasts longer and should be easier to see
- Loading branch information
Showing
22 changed files
with
193 additions
and
44 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { Ability } from "../ability-type"; | ||
import { Unit } from "w3ts/handles/unit"; | ||
import { BUFF_ID } from "resources/buff-ids"; | ||
import { SoundRef } from "app/types/sound-ref"; | ||
import { FilterIsAlive } from "resources/filters"; | ||
import { Effect } from "w3ts/index"; | ||
import { ForceEntity } from "app/force/force-entity"; | ||
import { DynamicBuffEntity } from "app/buff/dynamic-buff-entity"; | ||
import { BuffInstanceDuration } from "app/buff/buff-instance-duration-type"; | ||
import { AbilityHooks } from "../ability-hooks"; | ||
import { ABIL_GENE_COSMIC } from "resources/ability-ids"; | ||
import { PlayerStateFactory } from "app/force/player-state-entity"; | ||
import { Minigun } from "app/weapons/guns/minigun"; | ||
|
||
const FullerAutoSounds = [ new SoundRef("Sounds\\minigun_fullerauto_1.mp3", false), new SoundRef("Sounds\\minigun_fullerauto_2.mp3", false) ]; | ||
|
||
export class MinigunFullerAutoAbility implements Ability { | ||
|
||
private unit: Unit | undefined; | ||
private wep: Minigun; | ||
|
||
private duration = 5; | ||
|
||
constructor() {} | ||
|
||
public initialise() { | ||
this.unit = Unit.fromHandle(GetTriggerUnit()); | ||
FullerAutoSounds[ GetRandomInt(0, FullerAutoSounds.length -1)].playSoundOnUnit(this.unit.handle, 127); | ||
|
||
const crew = PlayerStateFactory.getCrewmember(this.unit.owner); | ||
if (crew && crew.unit === this.unit) { | ||
const minigun = crew.weapon as Minigun; | ||
this.wep = minigun; | ||
this.wep.fullerAutoActive = true; | ||
} | ||
return true; | ||
}; | ||
|
||
public process(delta: number) { | ||
this.duration -= delta; | ||
return this.duration > 0; | ||
}; | ||
|
||
public destroy() { | ||
this.wep.fullerAutoActive = false; | ||
return true; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.