Skip to content

Commit 0344aea

Browse files
committed
Tabs instead of spaces. LMAO
1 parent 5f3aa57 commit 0344aea

File tree

1 file changed

+24
-23
lines changed

1 file changed

+24
-23
lines changed

code/tools/MagnetoStick.cs

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ public override void OnPlayerControlTick()
1212

1313
using ( Prediction.Off() )
1414
{
15-
// I might not want to overwrite super's class memeber MaxTraceDistance
16-
// ~56.54 hu to m based on rough doorway estimates
17-
traceDistance = 75 //hu | ? // TODO: To be adjusted when tested
15+
test
16+
// I might not want to overwrite super's class memeber MaxTraceDistance
17+
// ~56.54 hu to m based on rough doorway estimates
18+
traceDistance = 75 //hu | ? // TODO: To be adjusted when tested
1819
var input = Owner.Input;
1920

2021
var startPos = Owner.EyePos;
@@ -31,14 +32,14 @@ public override void OnPlayerControlTick()
3132
return;
3233

3334
if ( tr.Entity.IsWorld )
34-
{
35-
if ( this.attached )
36-
{
37-
// Spawn rope of N lengh (32hu?) to connect points of attachment
38-
{}
39-
}
35+
{
36+
if ( this.attached )
37+
{
38+
// Spawn rope of N lengh (32hu?) to connect points of attachment
39+
{}
40+
}
4041
return;
41-
}
42+
}
4243

4344
if ( tr.Entity == target ) // Not sure what a target is
4445
return;
@@ -59,20 +60,20 @@ public override void OnPlayerControlTick()
5960

6061
else
6162
{
62-
if ( !input.Pressed( InputButton.Attack1 ) {
63-
// Hold Left Click to engage magnet affect. moving all items near/directional away with a small force
64-
{}
65-
};
66-
if ( !input.Pressed( InputButton.Attack2 ) {
67-
/** this.attached:False -- Right Click to grab object. Take first object on crosshair of certain distance away to hold in front of magnetostick (ragdolled if possible)
68-
this.attached:True -- Right Click to disattach object: */
63+
if ( !input.Pressed( InputButton.Attack1 ) {
64+
// Hold Left Click to engage magnet affect. moving all items near/directional away with a small force
65+
{}
66+
};
67+
if ( !input.Pressed( InputButton.Attack2 ) {
68+
/** this.attached:False -- Right Click to grab object. Take first object on crosshair of certain distance away to hold in front of magnetostick (ragdolled if possible)
69+
this.attached:True -- Right Click to disattach object: */
6970

70-
// Toggle attached mode
71-
{};
72-
};
73-
// target is not prop and valid
74-
// implement shove function here
75-
target = null
71+
// Toggle attached mode
72+
{};
73+
};
74+
// target is not prop and valid
75+
// implement shove function here
76+
target = null
7677
}
7778

7879
}

0 commit comments

Comments
 (0)