RUNNING WITH RIFLES

RUNNING WITH RIFLES

Not enough ratings
How to make Claymore and C4 last longer
By WarMechanic
This guide describes how to mod lifetime values for C4 and Claymore weapons to so you can leave them on the field for longer.
   
Award
Favorite
Favorited
Unfavorite
Identifying the game's weapons folder
In order to edit C4 / Claymore, you need to first find their entries in the game's files. We can start by opening the local files of the game - the fastest way to do this is to go into RWR's properties and browse local files.


You'll come to find that RWR's file organisation is quite orderly, and you will find the relevant weapon data at "...\RunningWithRifles\media\packages\vanilla\weapons".
Note that weapon visuals will instead be located in the textures or models folder, but this is beyond the point of the guide.
Modifying weapon data
RWR stores it's data in an XML format. To put things shallowly, it's really easy to edit numbers - especially given that all the game's assets are uncompiled and exposed.

I'm sure that some of you may choose to use an XML editor, but I simply chose to edit numbers with my favourite text-editor: Visual Studio Code. Notepad or other lookalike text editors work (I'm not so sure about Microsoft Word).

Without further ado, let's dive into the files.

And there it is, what we're looking for.
time_to_live="45">

Let's make it a little longer:
time_to_live="600">
And we're done here.


This portion covered C4 and changing it's lifetime duration, but you can apply the exact same steps to Claymore and similarly increase it's time on the floor.
Bonus: Ghetto AT-Mine
Increasing the C4's duration beyond it's abysmal 45 seconds proves potential for some intruiging shenanigans, it's honestly quite a shame that the duration was set so low.

We know how to increase the lifetime duration of Claymores and C4, so we should be able to do some pretty cool by mixing them together, right? But before we can actually mix them together, we need to do some copying-and-pasting.

blast_damage_threshold="0.25"
After some testing: I found that this specific line in the Claymore data allows it to be detonated by other explosives. This line does not exist in C4... So let's rectify that!

It's that simple.

Alright, now that we've modified the data correctly, let's see how we can put Claymores and C4 together in the actual game.

First, deploy a Claymore on a road where you expect enemy vehicles.
Yes, I use the Kemonomimi mod.

Next, throw a C4 directly on top of the Claymore

Now when a vehicle drives down the road, it will trigger the Claymore which will proceed to detonate the C4. According to the wiki all vehicles have less than 2400 health, so you'll only need one C4 to destroy just about everything.

Completely hands-off

It's important to deploy the Claymore first and the C4 second, as you can still LMB detonate the C4 and blow yourself up in the process.
You can also melee the explosive bundle to move it elsewhere, should you make a mistake.
Footnote
That's pretty much it. I'm sure there's other things you could do like changing damage numbers of certain weapons, enabling respawns with vest or ghillie suit, or increasing the floor duration of every item to an hour for you loot goblins out there. This would also make my first serious guide ever on something I can actually talk about seriously, so feedback would be appreciated.

Thank you for reading.