-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix poolballs, add bingo goal for sinking pool balls, add bingo goal for
visiting DuClare bedrooms
- Loading branch information
1 parent
8c23b16
commit 492c0fd
Showing
3 changed files
with
102 additions
and
0 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
class DXRPoolball injects #var(prefix)Poolball; | ||
|
||
|
||
function Bump(actor Other) | ||
{ | ||
local Vector HitNormal; | ||
|
||
//Vanilla had logic for making sure this only happened once within a 0.2 second limit | ||
//Presumably faster machines make that 0.02 timer pointless and I guess the balls were | ||
//hitting each other really fast or something? I dunno man. | ||
if (Other.IsA('#var(prefix)Poolball')) | ||
{ | ||
PlaySound(sound'PoolballClack', SLOT_None); | ||
HitNormal = Normal(Location - Other.Location); | ||
Velocity = (HitNormal * VSize(Other.Velocity)) / 1.01; | ||
Velocity.Z = 0; | ||
} | ||
} |