Left 4 Dead 2

Left 4 Dead 2

Left 4 Fun
Yoovy 2023 年 8 月 21 日 下午 9:05
Convert to Weapon Issue
Dead Center's gun store weapons, ammo pile, and laser sights aren't replaced despite the replacements working on other spawns. I don't know how you'd find a fix for it but yeah.
< >
正在显示第 1 - 6 条,共 6 条留言
Yoovy 2023 年 8 月 21 日 下午 9:35 
While I'm at it: Laser Sights, Ammo Piles, Incendiary/Explosive Rounds (not placed) all seem to not be able to be replaced either regardless if they're in the gun store or not.

I've tried the following and it doesn't work on any map.

l4f_weapontoconvert weapon_ammo,weapon_defibrillator
l4f_weapontoconvert weapon_ammo_spawn,weapon_defibrillator
l4f_weapontoconvert upgrade,weapon_defibrillator
l4f_weapontoconvert upgrade_spawn,weapon_defibrillator
smilzo  [开发者] 2023 年 8 月 22 日 上午 3:12 
Yes i know. Unfortunately i never managed to figure out why some items are not converted. The l4f_weapontoconvert uses the ConvertWeaponSpawn Director hook, so probably it has something to do with they way such items are placed on the map that aren't seen by the director or something like that. Idk honestly.
Yoovy 2023 年 8 月 25 日 下午 8:12 
引用自 smilzo
Yes i know. Unfortunately i never managed to figure out why some items are not converted. The l4f_weapontoconvert uses the ConvertWeaponSpawn Director hook, so probably it has something to do with they way such items are placed on the map that aren't seen by the director or something like that. Idk honestly.

After working on actual mutations it needs this:

function OnGameEvent_round_start_post_nav( params ) { foreach( wep, val in DirectorOptions.weaponsToConvert ) { for ( local wep_spawner; wep_spawner = Entities.FindByClassname( wep_spawner, wep + "_spawn" ); ) { local spawnTable = { origin = wep_spawner.GetOrigin(), angles = wep_spawner.GetAngles().ToKVString(), targetname = wep_spawner.GetName(), count = NetProps.GetPropInt( wep_spawner, "m_itemCount" ), spawnflags = NetProps.GetPropInt( wep_spawner, "m_spawnflags" ) } wep_spawner.Kill(); SpawnEntityFromTable(val, spawnTable); } } }

I don't know what you can do with this information but it's what I figured out.
最后由 Yoovy 编辑于; 2023 年 8 月 25 日 下午 8:12
CtrlAltCuteness 2024 年 2 月 23 日 上午 10:43 
This will replace all defibs with first aid kits. Without these two cvars I also supplied, you will still find defibs lying around.

In your mod:
director_defibrillator_density 0 director_convert_pills_to_defib_health 0 l4f_weapontoconvert defibrillator,first_aid_kit // -- utilizing L4F money system -- l4f_money true l4f_money_hud false l4f_money_reset true l4f_money_replacepickups true
In file: money/pickupstoreplace.txt
weapon_defibrillator = 0 weapon_defibrillator_spawn = 0
最后由 CtrlAltCuteness 编辑于; 2024 年 2 月 23 日 上午 10:49
Yoovy 2024 年 2 月 23 日 下午 12:17 
Oh this isn't relevant for me anymore, I just decided to make my own Mutations, but thanks anyways. :steamthumbsup:
CtrlAltCuteness 2024 年 2 月 23 日 下午 1:32 
引用自 Yoovy
Oh this isn't relevant for me anymore, I just decided to make my own Mutations, but thanks anyways. :steamthumbsup:
I totally understand. I was adding what I knew worked for anyone looking at this post these days.
< >
正在显示第 1 - 6 条,共 6 条留言
每页显示数: 1530 50