Jump to content

Search the Community

Showing results for tags 'pc'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Hot Lava
    • [Hot Lava] - General Discussion
    • [Hot Lava] - Suggestions and Feedback
    • [Hot Lava] - Bug Tracker
    • [Hot Lava] - Strats and Records
    • [Hot Lava] - Developer Log
    • Hot Lava Latest Update
  • Griftlands
    • [Griftlands] - General Discussion
    • [Griftlands] - Suggestions and Feedback
    • [Griftlands] - Mods and Tools
    • [Griftlands] - Localization
    • [Griftlands] - Bug Tracker
    • [Griftlands] - Developer log
  • Oxygen Not Included
    • Oxygen Not Included FAQ
    • [Oxygen Not Included] - Developer log
    • [Oxygen Not Included] - General Discussion
    • [Oxygen Not Included] - Bug Tracker
    • [Oxygen Not Included: Spaced Out!] - Bug Tracker
    • [Oxygen Not Included] - Mods and Tools
    • [Oxygen Not Included] - Suggestions and Feedback
    • [Oxygen Not Included] Art, Music & Lore
    • Community Challenges
    • [Oxygen Not Included] - Latest Content Update
    • [Oxygen Not Included] - Latest Animated Short
    • Oxygen Not Included DLC Alpha
  • Don't Starve Together
    • Don't Starve Together FAQ
    • [Don't Starve Together] Developer log
    • [Don't Starve Together] General Discussion
    • [Don't Starve Together] Beta Branch
    • [Don't Starve Together] PlayStation
    • [Don't Starve Together] Xbox One
    • [Don't Starve Together] Nintendo Switch
    • [Don't Starve Together] Bug Tracker
    • [Don't Starve Together] Trading
    • [Don't Starve Together] Server Bulletin
    • [Don't Starve Together] Dedicated Server Discussion
    • [Don't Starve Together] Mods and Tools
    • [Don't Starve Together] Tales of Life and Death
    • [DS + DST] Art, Music and Lore
    • [Don't Starve Together] Suggestions and Feedback
    • [Don't Starve Together] The Forge
    • [Don't Starve Together] The Gorge
    • [Archived Bugs]
  • Don't Starve
    • Don't Starve FAQ
    • [Don't Starve: Pocket Edition] iOS / Android
    • [Don't Starve] General Discussion
    • [Don't Starve] Mods and tools
    • [Don't Starve] Art, Music & Lore
    • [Don't Starve] Suggestions and Feedback
    • [Don't Starve] Videos
    • [Don't Starve] Bug Tracker
    • [Don't Starve] Trading
    • [Don't Starve] Testing Discussion (archive)
  • Klei Entertainment Games
    • Eets Munchies
    • [Invisible, Inc.] General Discussion and Strategies
    • Mark of the Ninja
    • Shank
  • Other Stuff
    • Other Klei Services

Categories

  • Don't Starve
    • Custom Characters
    • Game Modifications
    • Language Packs
    • Modding Tools, Tutorials & Examples
    • Custom Maps

Categories

  • Oxygen Not Included
  • Oxygen Not Included: Spaced Out!
  • Griftlands
  • Don't Starve: Hamlet
  • Don't Starve: Hamlet Early Access
  • Don't Starve Together
  • Don't Starve Together: Beta Branch
  • [Don't Starve Together] Nintendo Switch
  • [Don't Starve Together] PlayStation
  • Don't Starve Together: Return of Them
  • Don't Starve Together: The Gorge
  • Don't Starve Together: The Forge
  • Don't Starve Together: The Forge (Archive)
  • [Don't Starve Together] Xbox One
  • Don't Starve: Shipwrecked
  • Don't Starve: Shipwrecked [archive]
  • [Don't Starve Together] PS4 (archive)
  • [iOS] Don't Starve: Shipwrecked
  • Don't Starve: Hamlet Closed Beta (ARCHIVE)

Categories

  • Oxygen Not Included
  • Oxygen Not Included: Spaced Out!
  • Griftlands
  • Hot Lava
  • Don't Starve Together
  • [Nintendo Switch] Don't Starve Together
  • [PlayStation] Don't Starve Together
  • [Xbox One] Don't Starve Together
  • Don't Starve: Hamlet
  • Don't Starve: Shipwrecked

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Biography


Location


Interests


Occupation


Favorite Game


Modder


Chester Kickstarter


Chester Kickstarter


Chester Kickstarter


Chester Kickstarter


Chester Kickstarter


Klei Featured Artist


Early Supporter


Early Supporter


Don't Starve


Don't Starve Together


Oxygen Not Included

Found 1 result

  1. I want to learn how to use components and functions and help others have an better time while managing they're servers. Misc commands. function c_launch_flare(prefab) local flare = c_spawn("flare") local x, y, z = c_find("prefab").Transform:GetWorldPosition() flare.components.burnable:Ignite(true) flare.Transform:SetPosition(x, y, z) end You can guess what this does. ------------------------------------------------------------------------------------------------------- Replace objects with another prefab around an custom radius without replacing self. function c_replaceprefabs(prefab, radius, around, count) radius = radius or 4 around = around or ThePlayer local x,y,z = around.Transform:GetWorldPosition() local target_ents = TheSim:FindEntities(x,y,z, radius, count or nil, {"CLASSIFIED", "player"} ) for _,ent in pairs(target_ents) do local x,y,z = ent.Transform:GetWorldPosition() ent:Remove() SpawnPrefab(prefab).Transform:SetPosition(x,y,z) end end after using the command above do c_replaceprefab("prefab", radius, around, count) to do it ------------------------------------------------------------------------------------------------------- function c_extinguish(radius) radius = radius or 15 local x,y,z = ThePlayer.Transform:GetWorldPosition() local targets = TheSim:FindEntities(x,y,z, radius,nil,nil) for _,t in pairs(targets) do if t.components.burnable and t ~= AllPlayers[1] then t.components.burnable:Extinguish() end end end Extinguishs nearby prefabs if they're burning. Use c_extinguish(radius) to do after doing the command above. ------------------------------------------------------------------------------------------------------- function c_killnear(radius) radius = radius or 12 local x,y,z = ThePlayer.Transform:GetWorldPosition() local targets = TheSim:FindEntities(x,y,z, radius,nil,nil) for _,t in pairs(targets) do if t.components.health and t ~= AllPlayers[1] then t.components.health:Kill() end end end Kills things around the radius, use c_killnear(radius) to after using the command above to use. ------------------------------------------------------------------------------------------------------- Set other players speed c_select()c_speedmult(n) ------------------------------------------------------------------------------------------------------- Delete multiple objects around an certain radius. local REMOVE_CANT_TAGS={"CLASSIFIED", "player"} function c_removenearby(rad) local x,y,z = ConsoleWorldPosition():Get() local ents = TheSim:FindEntities(x,y,z, rad or 2, nil, REMOVE_CANT_TAGS) for k,v in pairs(ents) do v:Remove() end end After using command above use c_removenearby(rad) to remove nearby prefabs ------------------------------------------------------------------------------------------------------- Make an circle function c_makecircle(prefab, count) count = count or 16 local r = 4 for theta = 0, PI2, PI2 / count do local inst = DebugSpawn(prefab) local x,y,z = inst.Transform:GetWorldPosition() inst.Transform:SetPosition(x + math.cos(theta) * r, y, z + math.sin(theta) * r) end end After you use the command above use c_makecircle("prefab", count) to do it. ------------------------------------------------------------------------------------------------------- Make an spiral function c_spiral(prefab,count,radius,loops) count = count or 16 radius = radius or 4 loops = loops or 3 local inst = SpawnPrefab(prefab) if inst == nil then return nil end local x,y,z = ThePlayer.Transform:GetWorldPosition() local step = PI2 / count inst.Transform:SetPosition( x + 0, y, z + radius ) for theta = 0, PI2 * loops + step, step do radius = radius + step inst = SpawnPrefab(prefab) inst.Transform:SetPosition( x + radius * math.sin(theta), y, z + radius * math.cos(theta) ) end end Use c_spiral"prefab" or c_spiral("prefab",count,radius,loops) after using the command above to spawn an spiral ------------------------------------------------------------------------------------------------------- make players do animations. AllPlayers[number].AnimState:PlayAnimation("animation name", false). Animation list here ------------------------------------------------------------------------------------------------------- make existing items have more durrablity or no durrablity. No durrablity command c_select():RemoveComponent("finiteuses") more durrablity command c_select().components.finiteuses:SetUses(amount) ------------------------------------------------------------------------------------------------------- Use c_give with other players c_select()c_give("prefab") ------------------------------------------------------------------------------------------------------- Revive all players for k,v in pairs (AllPlayers) do v:PushEvent('respawnfromghost') end -------------------------------------------------------------------------------------------------- Drop everyone's items for k,v in pairs (AllPlayers) do v.components.inventory:DropEverything(true) end -------------------------------------------------------------------------------------------------- Give everyone creative for k,v in pairs (AllPlayers) do v.components.builder:GiveAllRecipes() do c_supergodmode(v) do c_maintainall(v) end end end ------------------------------------------------------------------------------------------------------- Combat commands. Commit arson function c_ignite(radius,burntime) radius = radius or 12 local x,y,z = ThePlayer.Transform:GetWorldPosition() local targets = TheSim:FindEntities(x,y,z, radius,nil,nil) for _,t in pairs(targets) do if t.components.burnable and t ~= AllPlayers[1] then t.components.burnable:Ignite(true, nil, burntime) end end end ------------------------------------------------------------------------------------------------------- Make stuff sleep function c_pacify(radius,sleepiness,sleeptime) radius = radius or 12 local x,y,z = ThePlayer.Transform:GetWorldPosition() local targets = TheSim:FindEntities(x,y,z, radius,nil,nil) for _,t in pairs(targets) do if t.components.sleeper and t ~= AllPlayers[1] then t.components.sleeper:AddSleepiness(sleepiness,sleeptime) end end end Use c_pacify(radius, sleepiness,sleeptime) after doing the command above do it. ------------------------------------------------------------------------------------------------------- Freeze entities around you (even other players) function c_freeze(radius,thawtime) radius = radius or 12 local x,y,z = ThePlayer.Transform:GetWorldPosition() local targets = TheSim:FindEntities(x,y,z, radius,nil,nil) for _,t in pairs(targets) do if t.components.freezable and t ~= AllPlayers[1] then t.components.freezable:Freeze(thawtime) end end end ------------------------------------------------------------------------------------------------------- Become invisible. ThePlayer:Hide() do ThePlayer:Show() to become visible again ------------------------------------------------------------------------------------------------------- Kill all players for k,v in pairs (AllPlayers) do v:PushEvent('death') end ------------------------------------------------------------------------------------------------------- Set attack speed ThePlayer.components.combat:SetAttackPeriod(period) ------------------------------------------------------------------------------------------------------- Set attack range ThePlayer.components.combat:SetRange(overralrange, hitrange) ------------------------------------------------------------------------------------------------------- function c_slaves(radius) radius = radius or 15 local x, y, z = ThePlayer.Transform:GetWorldPosition() local ents = TheSim:FindEntities(x, y, z, radius, nil,nil) for k, v in pairs(ents) do if v.components.health and ~= ThePlayer then ThePlayer.components.leader:AddFollower(v) v.components.follower:AddLoyaltyTime(4000) end end end This command adds entities around you. Use c_slaves(radius) after doing the command to use. ------------------------------------------------------------------------------------------------------- Random command Add tags c_select():AddTag("thetagyouwannaadd") ------------------------------------------------------------------------------------------------------- Extra commands ReplacePrefab(c_find"prefab you wanna replace", "prefab you want to replace the first one with") for example ReplacePrefab(c_find"multiplayer_portal", "multiplayer_portal_moon") ------------------------------------------------------------------------------------------------------- Place multiple things at once at any coordinate(reccomand having coordinate mod) (y/2)-2.9 part can make stairs if you don't want that then do the 2rd version. For x 1, 10 d for y 1,10 do local e = SpawnPrefab("wall_stone") e.Transform:SetPosition(x coordinate+x, (y or x/2)-2.9, z coordinate + y) end end ------------------------------------------------------------------------------------------------------- For x 1, 10 d for y 1,10 do local e = SpawnPrefab("wall_stone") e.Transform:SetPosition(x coordinate+x, y coordinate, z coordinate + y) end end ------------------------------------------------------------------------------------------------------- My favorite commands function c_colorselected(r, g, b, light) c_select().AnimState:SetMultColour(1,1,1,1) c_select().AnimState:SetAddColour(r,g,b,1) c_select().AnimState:SetLightOverride(light or 1) c_select().AnimState:SetHaunted(true) end Same as c_cyan but things under you cursor will become cyan. ------------------------------------------------------------------------------------------------------- function c_light(r,g,b, intensity, radius, falloff) local light = c_select().entity:AddLight() light:SetColour(r,g,b) light:SetIntensity(intensity or 0.8) light:SetRadius(radius) light:SetFalloff(falloff or 0.33) light:Enable(true) end Makes an light on the player (only players are affected) under the cursor. ------------------------------------------------------------------------------------------------------- function c_sanityaura(num) c_select():AddComponent ("sanityaura") c_select().components.sanityaura.aura = num end selected entity gets an sanity aura(use decimals as whole numbers are too big). Use c_sanityaura(num) after using command above to do it. ------------------------------------------------------------------------------------------------------- AllPlayers[1]:ListenForEvent("attacked", function() c_spawn("tornado").Transform:SetPosition(AllPlayers[1].Transform:GetWorldPosition()) AllPlayers[1].components.health:DoDelta(100, 50) end) ------------------------------------------------------------------------------------------------------ automatic revive after death. AllPlayers[1]:ListenForEvent("makeplayerghost", function AllPlayers[1]:PushEvent("respawnfromghost") end) ------------------------------------------------------------------------------------------------------- Checks if you asleep every five seconds and if you're then wakes you up and gives you god mode. function nosleepspam(inst) if inst.components.sleeper and inst.components.sleep:IsAsleep() then inst.components.sleeper:WakeUp() end end ThePlayer:DoPeriodicTask(1.5, nosleepspam) ------------------------------------------------------------------------------------------------------ Why do I hear boss music? GetPlayer().carolsoundoverride = "dontstarve/music/music_epicfight_stalker" ------------------------------------------------------------------------------------------------------- function c_setdamage(damage,attack,hit,range,percent,period,value,amount) c_select().components.combat:SetDefaultDamage(damage) c_select().components.combat:SetRange(attack, hit) c_select().components.combat:SetAreaDamage(range, percent) c_select().components.combat:SetAttackPeriod(period) c_select().components.combat.damagemultiplier=(value) c_select().components.health:SetMaxHealth(amount) end Literally sets nearly all combat aspects. The first line sets fist damage, the 2nd sets overral range and 3rd sets hit range, 4th sets area attack range and 5th sets are attack damage, 6th sets attack speed (can't go faster then one I think), 7th sets overral damagemultiplier and 8th sets health. Use c_setdamage(damage,attack,hit,range,percent,period,value,amount) after the command above to do it. ------------------------------------------------------------------------------------------------------- function rainboweffect(inst) local r, g, b = math.random(), math.random(), math.random() inst.AnimState:SetAddColour(r, g, b, 0) end c_select():DoPeriodicTask(0.2, rainboweffect) selected changes color every 0.2 seconds -------------------------------------------------------------------------------------------------------
×
×
  • Create New...