View Full Version : func_breakable breakable by custom weapons

07-06-2016, 11:54 AM
At the moment the only weapons that can be used for Instant Break Weapon are these 3:

weapon(choices) : "Instant Break Weapon" : 1 =
1: "Crowbar"
19: "Crowbar (Electric Only)"
20: "Pipe Wrench"

Wouldn't it be better if we could enter weapon_whatever instead(including custom weapons)? :3

07-06-2016, 02:42 PM
I believe this was only ever intended to extend on the "Instant Crowbar" flag that used to exist. This key couldn't be expanded as is to include custom weapons by their name as it works by integer to represent weapon index, but it could be used to represent all existing standard weapons. You'd have to know the weapon index in advance if you're going to want to use this for custom weapons.

The only way this will work with custom weapons by name without breaking compatibility for all previous maps is if we treat the number as a string by default, but if it's parsable to an integer we can treat it as an index for a standard weapon.

I shall file this request on our tracker.

10-06-2016, 03:23 PM
Oh yeah, breaking old maps is real easy if yer not careful D:
Thanks :3