Skip to content

Instantly share code, notes, and snippets.

View FevenKitsune's full-sized avatar

Will Stewart FevenKitsune

View GitHub Profile
[1] = {
["children"] = {
[1] = {
["children"] = {
},
["self"] = {
["Skin"] = 0,
["UniqueID"] = "ba54180ea3483c80130504bef651b6f9cd2d95c724d16906ff0fc138dd3747c0",
["NoLighting"] = false,
["BlendMode"] = "",
--@name Simple Third Person
--@author {toby} (Ported to StarfallEx by Feven Kitsune)
--@client
if player() ~= owner() then
return
end
local DISTANCE = 75
local POS_X = 30
--@name FOXTEK Laser Pulser
--@author FOXTEK (FevenKitsune + {Toby})
--@server
local Laser = class("Laser")
function Laser:initialize(R, Theta, Phi, Color)
self.R = R
self.Theta = Theta
self.Phi = Phi
@FevenKitsune
FevenKitsune / foxtek_supercircle_lasers.lua
Created December 21, 2023 02:22
Really efficient laser implementation.
--@name FOXTEK SuperCircle Lasers
--@author FOXTEK (Feven Kitsune)
--@server
local function createLaser()
local xSize = 0.15
local ySize = 0.15
local length = 2000
local origin = chip():getPos()
@FevenKitsune
FevenKitsune / snow.lua
Last active December 17, 2023 19:55
Indev version of snow for Starfall!
--@name Snow!
--@author Feven Kitsune
--@client
local emitter = particle.create( chip():getPos(), false)
local size = 100
local ready = false
local pmax = 100
if hasPermission("convar") then
pmax = convar.getInt("sf_particles_max")
@FevenKitsune
FevenKitsune / foxtek_circuit_visualizer.lua
Created December 1, 2023 17:38
Starfall Tool to visualize Wire connections.
--@name FOXTEK Circuit Visualizer
--@author FOXTEK (Feven Kitsune)
--@shared
if SERVER then
local svLinks = {}
local function scanRecursivelyEx(ent, alreadyTracked)
if alreadyTracked[ent] then return end
alreadyTracked[ent] = true
@FevenKitsune
FevenKitsune / client.lua
Last active July 13, 2023 06:42
Starfall Bash Indev (note, only for demo, this has SEVERAL security flaws)
--@name WebsocketShellv2
--@author FevenKitsune
--@shared
--@model models/props_lab/harddrive02.mdl
if SERVER then
--> SERVER CODE <--
local program_buffer = "" -- Buffer to store outgoing data.
@FevenKitsune
FevenKitsune / finite_state_machine_cpy_example.py
Last active December 1, 2022 20:35
CircuitPython example of a finite state machine.
"""
Finite State Machine Example
A state machine is a programming architecture commonly used to easily produce predictable and reliable code.
https://en.wikipedia.org/wiki/Finite-state_machine
The most important part to producing an FSM is to break your task into distinct states,
with triggers that switch the state your machine is currently in.
This can be modeled with a flowchart.
@name Music Player
@persist Prefix:string Queue:array Video:video Audio:webaudio CurrentlyPlaying
@trigger none
if(first()|dupefinished()){
Prefix = "??"
function void updateName() {
if(Queue:count() > 0) {
setName("Music Player\n\nCurrently Playing:\n" + Video:title() + "\nQueue:\n" + Queue:concat("\n"))
--@name Cerberus AI System
--@author Feven Kitsune
--@server
local chip = chip()
local hoverHeight = 80 -- How far above the user should the chip follow. Default: 100
local hoverDistance = 0 -- How far behind the user should the chip follow. Default: -20
local owner = owner()