Skip to content

Instantly share code, notes, and snippets.

@ark120202
ark120202 / api.generated.d.ts.diff
Created October 29, 2020 19:46
October 29, 2020 Dota 2 Update
@@ -11,18 +11,6 @@ declare interface CBaseAnimating extends CBaseModelEntity {
* Returns the duration in seconds of the active sequence.
*/
ActiveSequenceDuration(): number;
- /**
- * Get the attachment id's angles as a p,y,r vector.
- */
- GetAttachmentAngles(attachment: number): Vector;
- /**
- * Get the attachment id's forward vector.
@@ -565,47 +565,14 @@ declare interface CBaseModelEntity extends CBaseEntity {
declare const CBasePlayer: DotaConstructor<CBasePlayer>;
declare interface CBasePlayer extends CBaseCombatCharacter {
- /**
- * Returns whether this player's chaperone bounds are visible.
- */
- AreChaperoneBoundsVisible(): boolean;
- /**
- * Returns the HMD anchor entity for this player if it exists.
@@ -294,6 +294,10 @@
*/
GetSoundDuration(soundname: string, actormodel: string): number;
/**
+ * Returns the spawn group handle of this entity.
+ */
+ GetSpawnGroupHandle(): number;
+ /**
* Get the team number of this entity.
*/
{
"camera": {
"camera_1": 167,
"shot_camera": 56,
"hero_camera": 55,
"cardpackcamera": 6,
"herocamera": 5,
"shot_cameraA": 3,
"default_camera": 3,
"shot_cam": 2,
(async () => {
function fetch(url: string) {
return new Promise(resolve => {
$.AsyncWebRequest(url, { success: resolve });
});
}
async function fetchStrings() {
if ((GameUI.CustomUIConfig() as any).fetchedStrings) {
return (GameUI.CustomUIConfig() as any).fetchedStrings;
@ark120202
ark120202 / .diff
Last active November 26, 2019 20:16
+MODIFIER_EVENT_ON_DEATH_PREVENTED OnDamagePrevented
+MODIFIER_PROPERTY_ALWAYS_ETHEREAL_ATTACK GetAllowEtherealAttack
+MODIFIER_PROPERTY_BASE_ATTACK_TIME_CONSTANT_ADJUST GetModifierBaseAttackTimeConstant_Adjust
+MODIFIER_PROPERTY_COOLDOWN_PERCENTAGE_ONGOING GetModifierPercentageCooldownOngoing
+MODIFIER_PROPERTY_DAMAGEOUTGOING_PERCENTAGE_ILLUSION_AMPLIFY GetModifierDamageOutgoing_Percentage_Illusion_Amplify
+MODIFIER_PROPERTY_EXTRA_MANA_PERCENTAGE GetModifierExtraManaPercentage
+MODIFIER_PROPERTY_LIFESTEAL_AMPLIFY_PERCENTAGE GetModifierLifestealRegenAmplify_Percentage
+MODIFIER_PROPERTY_MAGICAL_RESISTANCE_BASE_REDUCTION GetModifierMagicalResistanceBaseReduction
+MODIFIER_PROPERTY_MAGICAL_RESISTANCE_BONUS_ILLUSIONS GetModifierMagicalResistanceBonusIllusions
+MODIFIER_PROPERTY_PHYSICAL_ARMOR_TOTAL_PERCENTAGE GetModifierPhysicalArmorTotal_Percentage
function getFileScope(): [any, string] {
let level = 1;
while (true) {
const info = debug.getinfo(level, 'S');
if (info && info.what === 'main') {
return [getfenv(level), info.source!];
}
level += 1;
}
}
export interface BaseAbility extends CDOTA_Ability_Lua {}
export class BaseAbility {}
export interface BaseItem extends CDOTA_Item_Lua {}
export class BaseItem {}
export interface BaseModifier extends CDOTA_Modifier_Lua {}
export class BaseModifier {
public static apply<T extends typeof BaseModifier>(
this: T,