Skip to content

Commit

Permalink
Add starfall processor createSent support
Browse files Browse the repository at this point in the history
  • Loading branch information
code-Toby authored and thegrb93 committed Sep 13, 2023
1 parent 6a89642 commit e79ee86
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lua/starfall/libs_sv/prop_sent.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1012,6 +1012,23 @@ registerSent("gmod_wire_expression2", {
}
})

registerSent("starfall_processor", {
_preFactory = function(ply, self)
end,
_postFactory = function( ply, self, enttbl )
local Data = {
["files"] = {["main"] = enttbl.Code},
["mainfile"] = "main",
["owner"] = ply
}
self:SetupFiles( Data )
end,
{
["Model"] = {TYPE_STRING, "models/spacecode/sfchip_medium.mdl"},
["Code"] = {TYPE_STRING, ""},
}
})

end
end)

Expand Down Expand Up @@ -1309,6 +1326,10 @@ return function() end
-- string _original = "print("Hello World!")"
-- table inc_files = {}
-- string Model = "models/beer/wiremod/gate_e2.mdl"
--
-- > starfall_processor
-- string Model = "models/spacecode/sfchip_medium.mdl"
-- string Code
--
-- > gmod_wire_extbus
-- string Model = "models/jaanus/wiretool/wiretool_gate.mdl"
Expand Down

0 comments on commit e79ee86

Please sign in to comment.