INFRA
95 ratings
"Properly" Cheating in Infra
By мяFunreal
Want to never run out of battery juice (or at least less often), open any door, spawn fuses... ? Learn how right here.
4
2
4
   
Award
Favorite
Favorited
Unfavorite
Dirty cheating
First of all, i'd like to mention that nothing of this disables achievements.
None of these are console commands that count as cheats, except for upgrading the flashlight.



Head to "steamapps\common\infra\infra\cfg" and open "Skill1.cfg".
We're going to do some modifications.

Carrying more batteries:
Increase the numbers in the first two lines to the following, to carry twice as many batteries.
You may also use 3000 for 30 batteries, or even be hardcore and use 500 for just 5 batteries.
sk_max_aa_batteries 2000 // 20 x 100 (20 full batteries) sk_max_d_batteries 2000 // 20 x 100 (20 full batteries)

Taking photos will no longer drain battery:
Taking any kind of photo has the penalty of draining the battery by 4%.
No matter if you took a correct photo, or misjudged your photo op.
Change the picture cost to 0 to stop draining the camera battery with every photo.
sk_camera_battery_picture_cost 0

Less frequent battery replacements:
By default, the camera drains its battery in 5 minutes by just having it out.
Meanwhile the flashlight drains its battery in 3.3 minutes.
Change the _frequency lines to higher numbers to replace the batteries less often.
This now drains the battery every half hour
sk_camera_battery_drain_frequency 18 //default _amount of 1%, all 18 seconds. sk_flashlight_battery_drain_frequency 18
If you use a drain frequency of 9, one battery will drain in 15 minutes.

Never replace batteries:
if you want to never reload the flashlight or camera, change the _amount lines to 0.
Cause, you know. Normal batteries last for weeks. The game lasts maybe two days max.
sk_camera_battery_drain_amount 0 sk_flashlight_battery_drain_amount 0
Additional, Dirtier cheats
We can add more cheats that are great at ruining the fun.
Add any of the following lines to your skill1.cfg file for additional functionality.

Num7 spawns camera batteries to where you're looking.
bind kp_home "ent_create item_aa_batteries"

Num8 spawns flashlight batteries to where you're looking.
bind kp_uparrow "ent_create item_d_batteries"

Num9 spawns a red brick fuse to where you're looking.
bind kp_pgup "prop_physics_create props_electric/industrial_fuse.mdl;ent_setname fuse_mdl1"

Num4 opens any door you are looking at, even ones that shouldn't be opened.
bind kp_leftarrow "ent_fire !picker unlock;ent_fire !picker open"

Num5 teleports any available named valve props to where you're looking.
Aim at a spot where a valve goes. Fitting valves will be used, others can be teleported again.
Also teleports the secret fuse in C3_M1 for the Easteregg door.
Unfortunately does not teleport unnamed valves.
For example: One large valve in the storm drain won't teleport, but the other does.
Creating a valve manually won't work either.
Luckily that unnamed valve is closely nearby.
bind kp_5 "ent_teleport secret_fuse;ent_teleport PPP_g2lp_valve_mdl;ent_teleport picupable_valve;ent_teleport steamleak_valve_phys;ent_teleport yellow_valve_phys;ent_teleport copan_valve_pink_phys;ent_teleport copan_valve_red_phys;ent_teleport water_level_meter_valve_01_prop;ent_teleport valve_mdl"

Num6 spawns a valve. Those valves are meant to work in the sewer, water plant, and villa.
bind kp_rightarrow "prop_physics_create props_structure/valve_001_phys.mdl" //any valve SHOULD work on c6_m4_waterplant, c5_m2b_sewer2, c9_m4_villa

Num0 opens the console. for when you need it i guess. no good use tho.
bind kp_ins "toggleconsole"

Num1 Spawns a bottle for the "Recycling Station" in Turnip Hill
bind kp_end "prop_physics_create props_junk/bottle_001.mdl"
Bottle_001 is a wine bottle, giving 3 points.
Bottle_002 is a plastic bottle, giving 2 points.
Bottle_003 is a beer bottle, giving 2 points.

Num2 Upgrades your flashlight. (requires cheats enabled via console. Disables achievements)
bind kp_downarrow "ent_fire !player upgradeflashlight"
41 Comments
Pijpleiding Jan 9, 2024 @ 6:12am 
I used the door open command but it doesn't work. am I doing something wrong? i did exactly as you said
мяFunreal  [author] Oct 28, 2023 @ 11:03am 
oh well yea, ent_remove is capable of removing the item you look at.
But the thing you aim at can sometimes be a particle entity or even your viewmodel.
Arsy Oct 28, 2023 @ 9:35am 
Hmm, ok. I tried it immediately after I posted, before you responded, with the command the way I wrote it. I was able to walk through the door I was looking at...?!
мяFunreal  [author] Oct 22, 2023 @ 9:56am 
ent_remove is just the initial command. you'll also need to mention what to remove. either by entity targetname, or use ent_remove_all to remove all entities by type
Arsy Oct 22, 2023 @ 3:59am 
How do you use the ent-remove command? Like this?

bind kp_uparrow "ent_remove"

Or is there more to it?
мяFunreal  [author] Sep 22, 2023 @ 1:32pm 
You might be locked out because of an invisible wall, spawned there.
In that case you could try ent_remove while looking at it, in hopes to delete the func_brush that stops you. But it could also delete the door or other required parts.
Arsy Sep 22, 2023 @ 11:40am 
So I opened a door using your "cheat", because the game wouldn't allow me to return to an area, but I can't actually go through the door, I guess the game still considers it "closed". Any solutions to that? Or, alternatively, any way to spawn a crate? I think I could return to the area I want if only I had one.
мяFunreal  [author] Aug 27, 2023 @ 2:59pm 
They aren't "cheats" as you'd know it from games like GTA.
Its just a configuration that you change. They should all be in the file i had mentioned. If they aren't, then your game is missing data.
Mat Aug 27, 2023 @ 1:47pm 
i dont see any cheats to edit
мяFunreal  [author] Aug 1, 2023 @ 9:18am 
it's a text file.
Any text editor will do.