Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/Pack.js
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | Pack.prototype.CancelPack = function() | ||||
if (cmpVisual) | if (cmpVisual) | ||||
cmpVisual.SelectAnimation("idle", false, 1.0, ""); | cmpVisual.SelectAnimation("idle", false, 1.0, ""); | ||||
}; | }; | ||||
Pack.prototype.GetPackTime = function() | Pack.prototype.GetPackTime = function() | ||||
{ | { | ||||
let cmpPlayer = QueryOwnerInterface(this.entity, IID_Player); | let cmpPlayer = QueryOwnerInterface(this.entity, IID_Player); | ||||
return ApplyValueModificationsToEntity("Pack/Time", +this.template.Time, this.entity) * | return ApplyValueModificationsToEntity("Pack/Time", +this.template.Time, this.entity); | ||||
cmpPlayer.GetCheatTimeMultiplier(); | |||||
}; | }; | ||||
Pack.prototype.GetElapsedTime = function() | Pack.prototype.GetElapsedTime = function() | ||||
{ | { | ||||
return this.elapsedTime; | return this.elapsedTime; | ||||
}; | }; | ||||
Pack.prototype.GetProgress = function() | Pack.prototype.GetProgress = function() | ||||
Show All 31 Lines |
Wildfire Games · Phabricator