-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ауры мутантов и контроллер из ЗП с некоторыми модификацими
Я переделал способ обнаружения этих аур. В ЗП, мутанты вокруг брались из ПДА. Они не отображались, но в списке имелись. Решение плохое, т.к. радиус обнаружения ПДА конфигурируется и он один. Т.е. если кто-то захочет, что бы ПДА показывал сталкеров только на расстоянии 10 метров, то дополнительно он получит, что все ауры мутантов станут дейстовать не расстоянии не более 10-ти метров. В моем же варианте используется свой собственный Feel::Touch, а радиус для него берется, как максимальная дальность ауры у всех мутантов в онлайне. Когда они выходят в онлайн, то делают Actor()->conditions().set_monsters_aura_radius( m_psy_aura.max_distance() ); Поправил обработку "*_enable_for_dead". Этот параметр указывает, нужно-ли продолжать использовать эту ауру для мертвого моба. Для radiation_* он по умолчанию true. Вот только в ЗП, при обновлении состояния актора, этот параметр не учитывается. Т.е. эффектор включаться будет, а вот хит наносится не будут, т.к. там учитываются только живые. В моем варианте хит будет наноситься. В CActorCondition::GetInjuriousMaterialDamage() я оставил заглушку, т.к. оно лезет глубоко в физику. Пусть остается на будущее. Добавил скриптовый метод obj:controller_psy_hit_active(), который возвращает, производится сейчас атака контроллера или нет. Это когда он к себе притягивает.
- Loading branch information
Showing
39 changed files
with
1,091 additions
and
598 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.