This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- pointshop2-master\lua\ps2\modules\weapons | |
hook.Add( "PlayerSpawn", "InitLoadoutConflictListener", function( ply ) | |
ply.ps2LoadoutPrimaryAssigned = false; | |
ply.ps2LoadoutSecondaryAssigned = false; | |
end ) | |
hook.Add( "PlayerCanPickupWeapon", "LoadoutConflictListener", function( ply, weapon ) | |
-- Prevent pickup until player inventory is loaded. | |
if not ply.PS2_Inventory then return false end | |
-- Cancel listener if player is spectating or a SpecDM ghost. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EntitySpawner = EntitySpawner or {} -- Globally accessable table of spawner functions. | |
local spawnPositions = {} | |
local spawnDelay = 15 | |
local spawnIterations = 16 -- Can be thought as a time limit: (spawnDelay * spawnIterations) seconds. | |
local maxAliveEntities = 6 | |
local minAlivePlayers = 5 | |
local enabled = true | |
local entity = "sent_ball" | |
if not enabled then return end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if SAM_LOADED then return end | |
local sam, command, language = sam, sam.command, sam.language | |
command.set_category("Advert") | |
sam.command.new("tsay") | |
:SetPermission("tsay", "trialstaff") | |
:Help("This will put a message in chat everyone will be able to see.") | |
:GetRestArgs(true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if SAM_LOADED then return end | |
local sam, command, language = sam, sam.command, sam.language | |
command.set_category("Anticheat") | |
local function RecursiveSetPreventTransmit( ent, ply, stopTransmitting ) | |
ent:SetPreventTransmit( ply, stopTransmitting ) | |
local tab = ent:GetChildren() | |
for i = 1, #tab do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Youtube 360 video conversion | |
ffmpeg -i input.mkv -vf "v360=c3x2:e:cubic:in_forder='lfrdbu':in_frot='000313',scale=3840:1920,setsar=1:1" -c:v libx264 -preset faster -crf 21 -c:a copy -movflags +faststart output.mp4 | |
Compression | |
ffmpeg -i input.mp4 -vcodec libx264 -crf 20 output.mp4 |