- Dec 30, 2015
- 5
- 4
Like some other people here I have been tinkering with the new 'trigger_add_or_remove_tf_player_attributes', in particular for a jump map. However this trigger does not instantly apply to equipped weapons if you modify something, say the maximum amount of stickies you can place at a time. I did notice that if you either equip and requipped a weapon it would then apply
OR, using a trigger kill the weapon entity (via trigger_multiple targeting the desired weapon e.g. tf_weapon_pipebomblauncher) followed by a func_regen which could then re-equip the weapon, resulting in the desired modified weapon.
The issue is that this destroys ALL weapons of that type serverwide, which isn't practicable on a jump map where someone could be mid-level and suddenly wind up with no weapon to use for a second or two.
The big question: Is it possible to specifically target a weapon entity held by the player who enters the trigger brush? (I've tried unsuccessfully to use a trigger to first rename the desired weapon of an !activator but to no avail.)
Alternatively, is there any other way to force a re-equip of a weapon(s) in a trigger zone?
OR, using a trigger kill the weapon entity (via trigger_multiple targeting the desired weapon e.g. tf_weapon_pipebomblauncher) followed by a func_regen which could then re-equip the weapon, resulting in the desired modified weapon.
The issue is that this destroys ALL weapons of that type serverwide, which isn't practicable on a jump map where someone could be mid-level and suddenly wind up with no weapon to use for a second or two.
The big question: Is it possible to specifically target a weapon entity held by the player who enters the trigger brush? (I've tried unsuccessfully to use a trigger to first rename the desired weapon of an !activator but to no avail.)
Alternatively, is there any other way to force a re-equip of a weapon(s) in a trigger zone?