Commit Graph

485 Commits

Author SHA1 Message Date
StrawWagen
099475e2c1
Autowarn for darkrp (#164) 2025-01-13 14:03:54 -07:00
legokidlogan
d9ea355f00
Make the one-time effect pool more interesting (#163) 2024-12-08 13:45:47 -07:00
Lumi
bc0653ee1e
Fix MOVETYPE not being set when dropping a player (#162) 2024-12-07 15:19:15 -08:00
shroobloom
0550713083
Fix ice skates sound (#161) 2024-11-30 21:12:02 -07:00
shroobloom
97cd54cb03
Add DoNoHarm, DoSomeHarm, and IceSkates curse effects (#160)
* Add the DoNoHarm curse

* Add the DoSomeHarm curse

* Fix incompatibilities

* Add IceSkates curse

* Indent changes

* Fix affecting noclip and balance for mainstream PvP

* Add effects

* Reapply friction on respawn

* Fix styling

* Fix styling pt 2 electric boogaloo

* Styling changes pt 3

* Add two spaces in this random function thing

* More styling changes

* More styling changes pt. 2
2024-11-30 20:29:12 -07:00
Redox
e70a65e82f
Also call RemoveMutationsForPlayer 2024-10-19 20:05:53 +02:00
Redox
fabf10c4f7
Use pace.ClearOutfit for ulx clearpac 2024-10-19 20:02:28 +02:00
legokidlogan
1998a73758
Allow random effect utils to be filtered (#159) 2024-09-27 21:10:57 -06:00
legokidlogan
9231b0d252
Use a non-scary hook name (#158) 2024-09-23 02:01:04 +02:00
legokidlogan
1068878417
More curses (#157)
* Create TheFloorIsLava effect

* Don't kill if frozen

* Create TheMiniOrb effect

* Do damage over time

* Create SeeingDouble effect

* Create Cyberspace and SuperCyberspace effects

* Remove unused

* Create Pixelated effect

* Create PixelatedEnts effect

* Create ScreenShuffle effect

* Remove unused

* Make ScreenScroll and ScreenMirror not blockable by camera

* Update incompats

* Prevent calcview addons from blocking some curses

* Add Sunbeams effect

* Use push/pop instead

* Improve listener names

* Make Screen- effects more compatible; improve compats

* Create MotionBlur and DrunkBlur effects

* Fix single-hook removal

* Create FilmDevelopment effect

* Update incompats

* Define common custom materials in one place

* Create ChromaticAberration effect

* Add ModelShuffle

* Fix CFCUlxCurse.RemoveEffectTimer()

* Create FilmDevelopmentNoClear effect

* Fix typo

* Fix refract rendering

* Allow Lidar to see TheMiniOrb

* Make TheMiniOrb bigger so Lidar can see it easier

* Don't push ents around

* Reduce max speed

* Fix typo

* Put NPC scans on expirable mesh

* Tweak scan sound
2024-09-22 14:20:54 -07:00
Redox
c9d579ffd6
Fix typo 2024-08-29 19:32:12 +02:00
Redox
3a8c68dc0b
Try also removing lua 2024-08-29 19:29:41 +02:00
legokidlogan
160063ad06
Improve LIDAR (#153)
* Make it easier to see players

* Expire current mesh as well

* Reduce dots per scan
2024-08-19 22:11:55 -06:00
legokidlogan
361fac6e11
Remove hat man, he's too obvious :( (#155) 2024-07-31 11:07:06 -05:00
legokidlogan
d535e05e55
Rarely trace filter can provide a nil ent (#154) 2024-07-31 18:04:56 +02:00
legokidlogan
209e4923e9
Make blindness less aggressive (#152) 2024-07-08 16:54:04 -07:00
legokidlogan
c8e576d729
Improve Schizophrenia (#151)
* Add fake crossbow bolt

* Add fake bullet whiz

* Fake undo hints

* Improve documentation

* Increase default schizophrenia duration

* Add the hat man
2024-07-08 18:17:40 -05:00
legokidlogan
e50faa7135
LIDAR Curse (#150)
* Create LIDAR effect

* Uses meshes instead

* Increase dot size

* Meshes allow for loooots more dots

* Render HUD and chat

* Add incompatibilities

* Scan water

* Moar

* Show players and NPCs

* Expand scan cone

* Remove unused

* Fix serverside error on load

* Add scanner ball

* Add sounds
2024-07-08 18:16:43 -05:00
legokidlogan
73d7a59b38
Fix water and other materials breaking after TextureShuffle ends (#149)
* Detect textureless materials properly

* Exclude textureless materials from the pool
2024-07-08 18:15:02 -05:00
legokidlogan
3f95dc1221
Add RandomSounds and SoundShuffle curses (#148)
* Create RandomSounds and SoundShuffle effects

* Exclude really long or (most) looping sounds

* Consistency

* Only shuffle as needed

* Load in batches

* Fix infinite loop

* Consistency

* Use lookup correctly

* Return early

* Reduce args

* Tweak settings

* Block synth sounds

* Exclude RandomSounds from one-time pool

* Use LuaLS annotations

* Format change for localization of global functions

* Simplify

* Make shared util file between sound curses

* Wrap sound.PlayFile() as well

* Tweak settings

* Exclude both from onetime pool

* Improve filters

* Make sound batching much smoother

* Empty on end, not start

* Return values
2024-07-08 18:14:04 -05:00
legokidlogan
ae0b65eb75
Allow ulx curse to specify an amount of random effects to give (#144)
* Allow ulx curse to specify an amount of random effects to give

* Filter out incompatible effects between each draw

* Safety checks

* Clamp instead of abort

* A smidge of pazazz

* Clarity
2024-06-28 15:57:18 -05:00
StrawWagen
5068562a71
Typo (#147) 2024-06-28 22:19:24 +02:00
legokidlogan
93d4eb4a15
Set undefined instead of nil (#146) 2024-06-28 21:41:25 +02:00
legokidlogan
c212708805
MORE CURSES (#143)
* Create rubberband effect

* Create swagger effect

* Create TextureShuffle and TextureShuffleContinuous effects

* Create WorldFlip effect

* Put an upper limit on SanFrancisco intensity

* Create ReverseAimbot effect

* Create InputDrop effect

* Actually overwrite the curse effect

* Create Isometric effect

* Create TopDown effect

* Create WorldOffset effect

* Add note

* Create Schizophrenia effect

* Add sounds to schizophrenia curse

* Make spawn chances less dependenbt on fps

* Account for sound duration

* Make ghosts flee instead of instantly disappearing

* Faster

* Remove dead comments

* Provide a synced start time for curses

* Create StaggeredAim effect

* Actually default to empty table

* Improve incompatibilities using groups

* Fix typo

* Remove clumsy from one-time pool, too annoying

* Create ColorModify effect

* Create ColorModifyContinuous effect

* Create MotionSight effect

* Tweak incompatibilities

* Fix nil error

* First time predicted

* Flip vector:ToScreen() to match everything else

* Rename WorldFlip to MirrorWorld

* Store local

* Use ignorez to fix double vision up close and work with orthogonal rendering (e.g. isometric)

* Material always has ignorez now, no need to set/unset for 2d rendering

* More ignorez

* Bump

---------

Co-authored-by: Brandon Sturgeon <brandon@brandonsturgeon.com>
2024-06-28 12:58:43 -05:00
StrawWagen
5e44543e12
Add buildban (#145) 2024-06-27 17:05:02 -07:00
Redox
41dcbe3602
Improve trainfuck ent speed 2024-05-28 20:09:27 +02:00
Redox
952ef7c8c5
Add cfc_zoomer 2024-05-23 03:13:46 +02:00
Redox
de8fe386eb
Remove ulx checklua 2024-05-23 02:19:58 +02:00
legokidlogan
391e11acbb
Create drunk curse effect (#142)
* Create drunk curse effect

* Lint
2024-03-03 13:09:33 -07:00
Clayton
e677dd0822
Add IsValid check to caller in checkConstraints command (#140)
* Add IsValid check to caller

* Update cfc_constraint_checker.lua

* Remove trailing whitespace

---------

Co-authored-by: Redox <mail@redox.to>
2024-02-04 17:52:04 +01:00
legokidlogan
bbfd91da29
Small assorted bugfixes/improvements to some curses (#141)
* Don't block chat

* Block noclip in Rapture

* Use upwards directions if on the ground

* Remove redundant IsValid() checks
2024-01-20 15:40:16 -07:00
Brandon Sturgeon
404af2e41c
Use workshop 2023-12-16 06:43:24 -08:00
Redox
48f59eecc1
Fix console call error (#137)
* Fix console call error

* Add empty friend tbl message

* Check caller in receiver

* Update lua/ulx/modules/sh/cfc_checkfriends.lua

Co-authored-by: legokidlogan <26103433+legokidlogan@users.noreply.github.com>

---------

Co-authored-by: legokidlogan <26103433+legokidlogan@users.noreply.github.com>
2023-11-24 23:08:19 +01:00
legokidlogan
1b308c5f41
Don't block the menu (#136)
* Don't block the main menu

* Don't block weapon selection
2023-11-05 17:08:19 -07:00
legokidlogan
da10b4166d
Allow players to have multiple curse effects at the same time (#134)
* Allow curse effects to stack

* Pass name of effect to stop

* Pass name of effect to stop

* Extend auto cleanup system to client

* Improve timedcurse clarity

* Make live effect editing easier

* Set up incompatibility configs

* Don't block effect if it's alredy active

* Iterate table correctly
2023-11-05 16:27:53 -07:00
legokidlogan
fe62eafc2f
Fix timed punishment startup (#135)
* Don't start punishments until player is fully loaded

* Store punishments before enabling them

* Remove unknown punishments

* Improve clarity

* Use PlayerFullLoad

* Note dependencies
2023-10-30 12:40:42 -06:00
legokidlogan
007d2624e8
Rawset doesn't work on Vector (#133) 2023-10-16 04:58:36 +02:00
legokidlogan
e445612f3c
More curse effects (#130)
* Create Butterfingers effect

* Create FOV effect

* Create JumpExplode effect

* Create SpeedHacks effect

* Create SprintExplode effect

* Create Crab effect

* Create TrashRain effect

* Create Clumsy effect

* Create Jittery effect

* Create ResidentEvil effect

* Add EntMagnet effect

* Create TheseBootsAreMadeForWalking effect

* Use currect trace origin

* Tweak FOV duration

* Use correct IN_KEY for sprint

* Tweak SpeedHacks values

* Tweak Jittery values

* Use a different mask for ResidentEvil

* Fix onEnd in TheseBootsAreMadeForWalking

* Randomize trash spawn chance per each curse instance

* Have rare, brief trash floods

* Tweak duration of TrashRain

* Tweak ResidentEvil duration

* Create CantStopWontStop effect

* Prevent respawn and weapons from resetting FOV

* Prevent various things from blocking LoS in ResidentEvil

* Enforce crosshair disabling

* Play nicely with non-prop vehicles

* Relocate camera when too far away

* Use rawset
2023-10-15 17:46:42 -06:00
legokidlogan
d68602bed3
Allow custom curse duration (#132) 2023-10-12 22:16:02 -06:00
legokidlogan
e5915db3df
Create silent curse command (#131)
* Create silent curse command

* Print scurse results to admins
2023-10-04 19:39:43 -06:00
legokidlogan
a13d7316b4
CFC-141 Create a serverside config for curses (#128)
* Create a serverside config for curses

* Tweak README
2023-09-23 21:16:19 -06:00
Brandon Sturgeon
bc1ffe827b
Fix stacking warning reasons... (#129) 2023-09-20 17:54:32 -07:00
legokidlogan
944e78e04f
CFC-121 Create ulx curse and ulx timedcurse (#127)
* Improve timedtrainfuck wording

* Delete redundant file

* Initial curse/timedcurse setup

* Network curse effects to client

* Create starter curse effects

* Decrease EFFECT_GAP_MAX

* Exclude less interesting effects from one-time pool

* Tweak durations

* Create more effects

* Stop effects serverside when player leaves

* Tweak EFFECT_GAP_MAX

* Play weapon switch sound

* Tweak aim offset max

* Add crouch effect

* Remove onTick

* Use recurring timer instead of Think hook

* Reorder for style consistency

* Add NoInteract effect

* Add RotatedControls effects

* Add Blindness effect

* Make hooks non-persistent

* Only loop through inflicted players

* Improve clarity; don't reassign

* Don't modify, only observe

* Revert now-unneeded TimedPunishments changes

* Use CurTime()

* Ensure all serverside hooks and timers are always removed safely

* Add StankyCrouch effect

* Use AdjustMouseSensitivity hook

* Add HealthDrain effect

* Add HealthObfuscate effect

* Use ScreenScaleH()

* ProtectedCall onStart() and onEnd()

* Allow ulx to apply specific curse effects

* Load curses before ulx command; include effects in autocomplete

* Reduce one-time mult for ViewPummel

* Add SanFransisco effect

* Tweak shake growth rate

* Add HealthScramble effect

* Add Smeary effect

* Only scramble health every 10 ticks

* Fix concmd args

* Remove smeary because convars will linger on disconnecitng players

* Add Rapture effect

* Add ThanosSnap effect

* Add InputDelay effect

* Add InvertAim effect

* Create RotateAim effects

* Add TextScramble effect

* Add InvertColors effect

* Add ScreenMirror and ScreenScroll effects

* Fix serverside error

* Fix filename typo

* Tweak durations and exclusivity

* Don't try to snap pac parts

* Compress cw/ccw pairs into one dual effect

* Maintain naming consistency

* Make AimSensitivity not give values close to 1

* Provide duration in onStart()

* Chance to offset aim multiple times across the effect
2023-09-06 16:24:42 -06:00
Redox
e9853a8c94
Set eyeang roll to 0 (#126)
* Set eyeang roll to 0
2023-08-23 18:48:01 +02:00
Brandon Sturgeon
dfd4a7e1ed
Ball (#125) 2023-08-22 19:17:16 -07:00
Redox
a3bf714e24
Reduce ulx checkfriends spam CFC-92 (#124)
* Reduce ulx checkfriends spam

* Move log message
2023-08-21 18:42:19 +02:00
Periapsises
9363e67738
Replace UInt32 with Double in net message (#123) 2023-08-10 20:15:23 +02:00
legokidlogan
4457791a20 Fix missing name 2023-08-09 16:44:25 -05:00
legokidlogan
a60c39cb49 Block spawning and noclip manually 2023-08-09 16:44:25 -05:00
Periapsises
fb52ab0160
Update killicon (#121) 2023-08-02 22:01:14 -07:00