Skip to content

Commit 23d5323

Browse files
authored
Add snake curse (#183)
1 parent 150f2cb commit 23d5323

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

lua/cfc_ulx_commands/curse/effects/crab.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ CFCUlxCurse.RegisterEffect( {
2222
excludeFromOnetime = nil,
2323
incompatibileEffects = {
2424
"TheseBootsAreMadeForWalking",
25+
"Snake",
2526
},
2627
groups = {
2728
"Input",
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
local EFFECT_NAME = "Snake"
2+
3+
4+
CFCUlxCurse.RegisterEffect( {
5+
name = EFFECT_NAME,
6+
7+
onStart = function( cursedPly )
8+
if SERVER then return end
9+
10+
CFCUlxCurse.AddEffectHook( cursedPly, EFFECT_NAME, "CreateMove", "LBozo", function( cmd )
11+
cmd:SetSideMove( 0 )
12+
end )
13+
end,
14+
15+
onEnd = function()
16+
-- Do nothing.
17+
end,
18+
19+
minDuration = nil,
20+
maxDuration = nil,
21+
onetimeDurationMult = nil,
22+
excludeFromOnetime = nil,
23+
incompatibileEffects = {
24+
"Crab",
25+
},
26+
groups = {
27+
"Input",
28+
"AD",
29+
},
30+
incompatibleGroups = {
31+
"AD",
32+
},
33+
} )

0 commit comments

Comments
 (0)