Skip to content

Instantly share code, notes, and snippets.

View Elmuti's full-sized avatar
🏠
Working from home

real name Elmuti

🏠
Working from home
  • Finland
View GitHub Profile

clone a new repo as local

git clone repourl

create a new repo from local

  • create repo on github/gitlab etc, then:
git init
git remote add repourl
@Elmuti
Elmuti / unit.ts
Created October 21, 2023 17:25
server/unit.ts
import { UnitStat } from "shared/unit/UnitStat";
import { Damage } from "server/combat/Damage";
import { SpellResult } from "shared/spell/SpellResult";
import { angleBetween } from "shared/support/math";
import { SpellCast } from "server/spell/SpellCast";
import { Heal } from "server/combat/Heal";
import { Dependency } from "@flamework/core";
import { SpellService } from "server/spell/SpellService";
import { UnitStates } from "shared/unit/UnitState";
import { DRType } from "shared/combat/DRType";
local ExpandingBeamCylinderEffect = {}
local function Lerp(start, goal, alpha)
return start * (1 - alpha) + goal * alpha
end
local function TweenFlameEffectTransparency(effect, endtransparency, duration)
local alpha = 0
local t = 0
while t < duration do
local Abyss = require(game.ReplicatedStorage.Abyss.Main)
local mathLib = Abyss.LoadModule("MathLib")
local pretty = Abyss.LoadModule("PrettyPrinter")
local lootLib = {}
local RAND_SEED = tick()
print("RANDOM SEED: " .. RAND_SEED)
math.randomseed(1520448512.2074)
for i = 1, 6 do math.random() end
local affixes = game.ReplicatedStorage.ItemData.Affixes
local Abyss = require(game.ReplicatedStorage.Abyss.Main)
local mathLib = Abyss.LoadModule("MathLib")
local pretty = Abyss.LoadModule("PrettyPrinter")
local lootLib = {}
local RAND_SEED = tick()
print("RANDOM SEED: " .. RAND_SEED)
math.randomseed(1520448512.2074)
for i = 1, 6 do math.random() end
local affixes = game.ReplicatedStorage.ItemData.Affixes
@Elmuti
Elmuti / asdsda.md
Last active December 18, 2022 17:21

Ozymandias spell design doc

Notes:

Some spells might become talents later, dont worry about that just add spells

Warrior:

Misc:

  • No stances
  • White hits generate rage, but some abilities do as well

Spells:

  • Charge (has 2 charges, 15sec replenish time)
SpyDB = {
["kosData"] = {
["Bloodfang"] = {
["Alliance"] = {
["Elblue"] = {
},
["Elmup"] = {
},
["Elmu"] = {
local PreBakedDeathFunction = {}
local random = math.random
local ceil = math.ceil
local floor = math.floor
local randomseed = math.randomseed
local prevActual = 0
local prevWeeks = 0
randomseed(1557007091) --os.time()
random(); random(); random()
---------------------------------------------
-- Generated from Mirana Compiler version 1.6.2
-- Do not modify
-- https://github.com/AaronSong321/Mirana
---------------------------------------------
local utility = require(GetScriptDirectory().."/utility")
require(GetScriptDirectory().."/ability_item_usage_generic")
local AbilityExtensions = require(GetScriptDirectory().."/util/AbilityAbstraction")
local debugmode = false
local npcBot = GetBot()
// Dota Heroes File
"DOTAHeroes"
{
"Version" "1"
//=================================================================================================================
// HERO: Base
// Note: This is loaded and overriden/added to by values in the specific heroes chunks.
//=================================================================================================================
"npc_dota_hero_base"
{