PortalGun
A portal gun for White Knuckle. Seamless see-through portals: walk, climb and fling through them with momentum. Props, creatures, projectiles, grapples, sound and light pass through too.
| Last updated | 2 days ago |
| Total downloads | 242 |
| Total rating | 0 |
| Categories | Mods Misc Buffs Artifacts Items AI Generated |
| Dependency string | Perchicoree-PortalGun-0.1.1 |
| Dependants | 0 other packages depend on this package |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2305README
Portal Gun
A portal gun for White Knuckle. Place two linked portals (blue and orange) on flat surfaces, then look, walk, climb, fall or fling yourself through them.
Single-player only.
Features
- A held portal gun item that places two linked, oval portals on flat surfaces: walls, floors and ceilings.
- Seamless portals. You see through them in real time, and crossing one has no pop or camera snap. Momentum is preserved.
- Things that work through portals:
- Grabbing handholds through a portal, and keeping your grips while you cross.
- Props, including carrying a prop through.
- Creatures and other entities. They can see and chase you through portals.
- Weapons, projectiles, pitons and grapples.
- Sound and dynamic lights.
- Portal 2-style floor funnelling (falling near a floor portal steers you in) and wall lips.
- Effects: a shot projectile with a trail, a placement splash, a fail spark, sounds, a muzzle flash and a gun light.
- Compatible with the Phantom Limb perk. The gun is kept through biological disk respawn.
- Portals close when the level they are on unloads, or when their surface moves.
Controls
| Action | Default key |
|---|---|
| Get a portal gun | F9 |
| Blue portal | The hand's normal use/fire button |
| Orange portal | R |
| Close both portals | F10 |
F9 spawns a portal gun into your inventory. In this version there is no other way to obtain it. All keys can be changed in the config.
Install
With r2modman or the Thunderstore Mod Manager: install this package. It depends on BepInExPack, which is installed automatically.
Manual install: install BepInExPack for White Knuckle, then put PortalGun.dll into BepInEx/plugins/.
If the mod doesn't run, check that BepInEx/config/BepInEx.cfg has HideManagerGameObject = true under [Chainloader]. Without it the plugin will not run.
Config
The config file is created after the first launch: BepInEx/config/com.perch.whiteknuckle.portalgun.cfg. r2modman's config editor works well for this.
Notable sections:
- Portal:
SizeScale,PlaceBKey - Gameplay:
ProjectileShots,ShotSpeed - Funnel:
FloorFunnel,WallLips - Transit
- Visual:
Shape(Oval or Rectangle) - Audio:
Enabled,Volume - Effects
- Debug:
GiveKey,EnableGiveKey,ClearPortalsKey
Every gameplay change can be turned off in the config.
Known issues and limits
- Single-player only.
- Leaderboards are disabled while the mod is loaded. This is intentional, and the mod does not try to get around it.
- White Knuckle is in Early Access, so game updates may break the mod.
- Other rendering mods (ReShade, upscaler hooks) may interfere with portal rendering.
Bug reports and source
https://github.com/Perchicoree/SubstructureScience
Credits
- Mod author: Perchicoree
- Portal gun model: "Low Poly Portal Gun" by Pete_YT (https://sketchfab.com/3d-models/low-poly-portal-gun-23ce7b9596014d4eb4557ce88fc8ae3a), licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Modified: baked to a texture atlas and rescaled.
- Hand sprites: @indig0o_w_hale on Discord
Inspired by Valve's Portal. Not affiliated with or endorsed by Valve or Dark Machine Games.