{"id":305448,"date":"2020-06-16T15:01:43","date_gmt":"2020-06-16T15:01:43","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=305448"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=305448","title":{"rendered":"Gameplay Ability System: \u043a\u0430\u043a \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043f\u043b\u0430\u0433\u0438\u043d \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 Survival RPG"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/company\/socialquantum\/blog\/505886\/\">\u0412 Social Quantum \u0441\u0435\u0439\u0447\u0430\u0441 \u043a\u0438\u043f\u0438\u0442 \u0440\u0430\u0431\u043e\u0442\u0430 \u043d\u0430\u0434 \u043d\u043e\u0432\u044b\u043c\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u043d\u0430 Unreal Engine 4. \u0414\u043b\u044f \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u044d\u0442\u0438\u0445 \u0438\u0433\u0440 \u043c\u044b \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043f\u043b\u0430\u0433\u0438\u043d Gameplay Ability System (\u0434\u0430\u043b\u0435\u0435 GAS). \u041c\u043d\u043e\u0433\u0438\u0435 \u043e \u043d\u0435\u043c \u0441\u043b\u044b\u0448\u0430\u043b\u0438, \u043d\u043e \u0440\u0435\u0434\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u043b\u0438 \u0434\u043b\u044f \u0441\u0432\u043e\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432. \u042d\u0442\u043e\u043c\u0443 \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u0447\u0438\u043d: \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u043e\u0431\u044a\u0435\u043c\u043d\u043e\u0441\u0442\u044c \u0438 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u041d\u0430\u0448\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0440\u0435\u0448\u0438\u043b\u0430 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u0441\u0435\u0440\u0438\u044e \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u043e\u0432, \u0433\u0434\u0435 \u043c\u044b \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c \u043e\u0431 \u043e\u043f\u044b\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u0438 \u0440\u0430\u0437\u0432\u0435\u0435\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u0438\u0444\u044b.<\/p>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u0441\u0430\u043c\u044b\u0435 \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u044b GAS \u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0435\u0435 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043a\u043e\u043f\u043d\u0435\u043c \u0447\u0443\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u00ab\u0434\u0435\u043b\u0430\u0435\u043c \u0437\u0435\u043b\u044c\u0435 \u0434\u043b\u044f \u043f\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f\u00bb.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ic\/ab\/t_\/icabt_kdciv_qb3yt-rxknrsuuc.png\"><\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<h3>\u041f\u043b\u044e\u0441\u044b \u0438 \u043c\u0438\u043d\u0443\u0441\u044b<\/h3>\n<p>  \u041f\u043b\u0430\u0433\u0438\u043d GAS \u0434\u043e \u0432\u0435\u0440\u0441\u0438\u0438 4.22 \u0431\u044b\u043b \u0432 \u0441\u0442\u0430\u0442\u0443\u0441\u0435 \u00abUnsupported\u00bb, \u0441\u0435\u0439\u0447\u0430\u0441 \u044d\u0442\u043e \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u0435 \u0441\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c \u043d\u0430 \u0431\u0435\u0442\u0443-\u0432\u0435\u0440\u0441\u0438\u044e. \u041d\u043e \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u043e\u043d \u043e\u0447\u0435\u043d\u044c \u0448\u0438\u0440\u043e\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u0440\u0443\u043f\u043d\u044b\u043c\u0438 \u0438\u0433\u0440\u043e\u043a\u0430\u043c\u0438 \u0438\u043d\u0434\u0443\u0441\u0442\u0440\u0438\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 Fortnite.<\/p>\n<p>  \u041d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0441\u043b\u043e\u0432\u0430 \u00abAbility\u00bb \u0432 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043e\u0447\u0435\u043d\u044c \u0448\u0438\u0440\u043e\u043a\u0438 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0435 \u043c\u043e\u0436\u043d\u043e \u0434\u043b\u044f \u043b\u044e\u0431\u044b\u0445 \u0433\u0435\u0439\u043c\u043f\u043b\u0435\u0439\u043d\u044b\u0445 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439, \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 MOBA\/MMO \u0438\u0433\u0440\u0430\u0445. \u041f\u0440\u0438\u043c\u0435\u0440\u043e\u043c \u0442\u043e\u043c\u0443 \u043d\u0430\u0448 Survival \u043f\u0440\u043e\u0435\u043a\u0442, \u0433\u0434\u0435 \u043d\u0430 \u0431\u0430\u0437\u0435 \u0430\u0431\u0438\u043b\u043e\u043a \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u0432\u0441\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0438\u0433\u0440\u043e\u043a\u0430 (\u043f\u0435\u0440\u0435\u043a\u0430\u0442\u044b, \u043f\u0438\u043d\u043a\u0438, \u0443\u0434\u0430\u0440\u044b, \u0441\u0442\u0440\u0435\u043b\u044c\u0431\u0430, \u043f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430, \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c\u0438 \u0443\u0440\u043e\u0432\u043d\u044f \u0438 \u0442.\u043f.). \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043f\u043b\u044e\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0435 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u044d\u0442\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b: <\/p>\n<ul>\n<li>\u041e\u0447\u0435\u043d\u044c \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0433\u0438\u0431\u043a\u043e\u0441\u0442\u044c;<\/li>\n<li>\u041c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0433\u0435\u0439\u043c-\u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440\u0430\u043c\u0438 \u0431\u0435\u0437 \u0443\u0447\u0430\u0441\u0442\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430 (\u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0434\u043b\u044f \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0435\u0442\u0430\u043f\u0430 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0437\u0430\u043b\u0435\u0437\u0442\u044c \u0432 c++, \u043d\u043e \u0434\u043b\u044f \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u043a\u0438\u043b\u043b\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430, \u043f\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u043c\u0443 \u0441\u0447\u0435\u0442\u0443, \u043d\u0435 \u043d\u0443\u0436\u043d\u044b);<\/li>\n<li>Multiplayer-ready \u0440\u0435\u0448\u0435\u043d\u0438\u0435 (\u043e\u0447\u0435\u043d\u044c \u0436\u0438\u0440\u043d\u044b\u0439 \u043f\u043b\u044e\u0441, \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c \u043e \u043c\u0443\u043b\u044c\u0442\u0438\u043f\u043b\u0435\u0435\u0440\u0435 \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445);<\/li>\n<li>\u041d\u0435 \u043d\u0443\u0436\u043d\u043e \u0442\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u0441\u0430\u043c\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<\/li>\n<\/ul>\n<p>  \u041d\u0443 \u0438 \u043c\u0438\u043d\u0443\u0441\u044b, \u043a\u0443\u0434\u0430 \u0436\u0435 \u0431\u0435\u0437 \u043d\u0438\u0445:<\/p>\n<ul>\n<li>\u0414\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043a\u0440\u0443\u0442\u0430\u044f \u043a\u0440\u0438\u0432\u0430\u044f \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f (\u0448\u0438\u0440\u043e\u043a\u0438\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043d\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0438 \u0441\u0442\u0430\u0442\u0435\u0439);<\/li>\n<li>\u0421 \u0440\u043e\u0441\u0442\u043e\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u044d\u0444\u0444\u0435\u043a\u0442\u043e\u0432\/\u0442\u0435\u0433\u043e\u0432\/\u0430\u0431\u0438\u043b\u043e\u043a \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u043e\u0442\u0441\u043b\u0435\u0434\u0438\u0442\u044c \u043f\u0440\u0438\u0447\u0438\u043d\u044b \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u043e\u0448\u0438\u0431\u043e\u043a.<\/li>\n<\/ul>\n<p>  \u0412\u0437\u0432\u0435\u0441\u0438\u0432 \u0432\u0441\u0435 \u0437\u0430 \u0438 \u043f\u0440\u043e\u0442\u0438\u0432, \u043c\u044b \u0441 \u0433\u043e\u043b\u043e\u0432\u043e\u0439 \u043d\u044b\u0440\u043d\u0443\u043b\u0438 \u0432 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438 \u043f\u0435\u0440\u0435\u0432\u0435\u043b\u0438 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0441\u0435 \u0438\u0433\u0440\u043e\u0432\u044b\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043d\u0430 \u0430\u0431\u0438\u043b\u043a\u0438, \u043d\u0438 \u0440\u0430\u0437\u0443 \u043e\u0431 \u044d\u0442\u043e\u043c \u043d\u0435 \u043f\u043e\u0436\u0430\u043b\u0435\u0432. \u0414\u0430\u043b\u0435\u0435 \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u0435\u043c\u0441\u044f \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u044d\u0442\u0438\u043c \u043e\u043f\u044b\u0442\u043e\u043c \u0438 \u0441 \u0432\u0430\u043c\u0438, \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0435\u0445\u0430\u043d\u0438\u043a (\u0445\u043e\u0442\u044f \u0441 \u0432\u0438\u0434\u0443 \u043e\u043d\u0438 \u0442\u0430\u043a\u0438\u043c\u0438 \u0438 \u043d\u0435 \u043a\u0430\u0436\u0443\u0442\u0441\u044f).<\/p>\n<h3>\u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 GAS<\/h3>\n<p>  \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u043b\u0430\u0433\u0438\u043d \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d, \u043f\u043e\u044d\u0442\u043e\u043c\u0443, \u0435\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u043b\u0438 \u0435\u0433\u043e \u0440\u0430\u043d\u0435\u0435, \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0432 \u043c\u0435\u043d\u044e Settings -&gt; Plugins<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/uu\/yq\/zl\/uuyqzletvbbtbw74cruewvyhdne.png\"><\/p>\n<p>  \u0420\u0435\u0441\u0442\u0430\u0440\u0442\u0443\u0435\u043c \u0430\u043d\u0440\u0438\u043b \u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a \u0430\u0431\u0438\u043b\u043a\u0430\u043c.<\/p>\n<h3>\u0410\u0431\u0438\u043b\u043a\u0430 \u0420\u043e\u043b\u043b<\/h3>\n<p>  \u042f \u0441\u0442\u0430\u0440\u0430\u043b\u0441\u044f \u043d\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u00ab\u043f\u0440\u043e\u0441\u0442\u044b\u0435\u00bb \u0430\u0431\u0438\u043b\u043a\u0438 \u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0438 \u0434\u0435\u043b\u0430\u044e\u0442, \u0447\u0442\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u044e\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0442 \u0441\u0435\u0442\u0430.<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">AttributeSet<\/b>                         <\/p>\n<div class=\"spoiler_text\">\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0441\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0432\u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0438 \u0431\u0443\u0434\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0410\u0431\u0438\u043b\u0438\u0442\u0438\u0421\u0438\u0441\u0442\u0435\u043c\u0430, \u0434\u043e\u043b\u0436\u043d\u044b \u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0442\u0430\u043c\u0438 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430. \u0412\u0441\u0435 \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0447\u0430\u0441\u0442\u044c\u044e AttributeSet. \u042d\u0442\u043e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430, \u043f\u043e\u043c\u0438\u043c\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u043c \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0445\u0435\u043b\u043f\u0435\u0440\u043d\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0434\u043b\u044f \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0439 \u043d\u0430\u0434 \u044d\u0442\u0438\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 (\u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u044f, \u0433\u0435\u0442\u0435\u0440\u044b, \u0441\u0435\u0442\u0435\u0440\u044b, \u043a\u043e\u043b\u043b\u0431\u0435\u043a\u0438 \u043d\u0430 Pre\/Post \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0438 \u0442.\u043f.).<\/div>\n<\/p><\/div>\n<p>  \u041c\u0435\u0445\u0430\u043d\u0438\u043a\u0430 \u0437\u0430\u0442\u0440\u043e\u043d\u0435\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u044e\u0430\u043d\u0441\u044b \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439, \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430 \u0433\u0435\u0439\u043c\u043f\u043b\u0435\u0439 \u044d\u0444\u0444\u0435\u043a\u0442\u043e\u0432 \u0438 \u0440\u0435\u0430\u043a\u0446\u0438\u0439 \u043d\u0430 \u043d\u0438\u0445. \u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c, \u043d\u043e \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0443\u0431\u0435\u0434\u0438\u043c\u0441\u044f, \u0447\u0442\u043e:<\/p>\n<ol>\n<li>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f Unreal Engine 4.24 (\u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435, \u044d\u0442\u043e \u043d\u0435 \u043e\u0441\u043e\u0431\u043e \u0432\u0430\u0436\u043d\u043e, \u043d\u043e \u043e\u0442 \u0432\u0435\u0440\u0441\u0438\u0438 \u043a \u0432\u0435\u0440\u0441\u0438\u0438 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0440\u0430\u0441\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0432 API);<\/li>\n<li>\u041f\u043b\u0430\u0433\u0438\u043d Gameplay Abilities \u0432\u043a\u043b\u044e\u0447\u0435\u043d (\u0441\u043c. \u00ab\u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 GAS\u00bb);<\/li>\n<li>\u0417\u0430\u043f\u0443\u0449\u0435\u043d \u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 Third Person (\u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 c++), \u0431\u0443\u0434\u0435\u043c \u043e\u0441\u043d\u043e\u0432\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043d\u0435\u043c.<\/li>\n<\/ol>\n<p>  \u0414\u0438\u0437\u0430\u0439\u043d \u0430\u0431\u0438\u043b\u043a\u0438 \u0437\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u043c \u0442\u0430\u043a\u043e\u0439: \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443, \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436 \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u0442 \u043a\u0443\u0432\u044b\u0440\u043e\u043a \u0432\u043f\u0435\u0440\u0435\u0434. \u0412\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u0435\u0440\u0435\u043a\u0430\u0442\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u043c \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u0438 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u043f\u0430\u0432\u043d\u0430\u043c\u0438, \u0447\u0442\u043e\u0431\u044b \u043b\u0435\u0433\u043a\u043e \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0438\u0437 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0432\u0440\u0430\u0433\u043e\u0432. \u0422\u0430\u043a\u0436\u0435, \u0435\u0441\u043b\u0438 \u043a\u0442\u043e-\u0442\u043e \u0438\u0437 NPC \u0437\u0430\u0434\u0435\u043d\u0435\u0442 \u043d\u0430\u0441 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u0435\u0440\u0435\u043a\u0430\u0442\u0430 \u2014 \u043f\u043e\u043b\u0443\u0447\u0438\u0442 \u0434\u0435\u0431\u0430\u0444 \u043d\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043d\u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f. \u0412 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u0441\u043a\u0438\u043b\u043b: <\/p>\n<div style=\"text-align:center;\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/-i\/ow\/yv\/-iowyvhhr2k9uzj3ym4c5f9rhaw.gif\" alt=\"gif\" width=\"640\" height=\"360\"><\/div>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u043e\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0438 \u0441\u0442\u0430\u043d\u0435\u0442 \u0431\u0430\u0437\u043e\u0432\u044b\u043c \u0434\u043b\u044f \u0438\u0433\u0440\u043e\u043a\u0430 \u0438 \u043c\u043e\u0431\u043e\u0432. \u0421\u0440\u0430\u0437\u0443 \u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u043d\u0435\u0433\u043e AbilitySystemComponet \u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 AbilitySystemInterface. <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">AbilitySystemComponent<\/b>                         <\/p>\n<div class=\"spoiler_text\">\u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044c GAS. \u0412 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435 \u0438\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0432\u0441\u044f \u043b\u043e\u0433\u0438\u043a\u0430 \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u0430\u0431\u0438\u043b\u043e\u043a, \u044d\u0444\u0444\u0435\u043a\u0442\u043e\u0432, \u0442\u0430\u0441\u043a\u043e\u0432 \u0438 \u043f\u0440. \u041a\u0430\u0436\u0434\u0430\u044f \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 \u043b\u044e\u0431\u044b\u043c \u0438\u0437 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 GAS (\u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0430\u0431\u0438\u043b\u043a\u0438, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u044d\u0444\u0444\u0435\u043a\u0442\u044b) \u0434\u043e\u043b\u0436\u043d\u0430 \u0438\u043c\u0435\u0442\u044c \u0443 \u0441\u0435\u0431\u044f \u0442\u0430\u043a\u0443\u044e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0443.<\/div>\n<\/p><\/div>\n<p>  \u042f \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u0431\u0443\u0434\u0443 \u043e\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u044b include \u0434\u043b\u044f \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u0447\u0438\u0442\u0430\u0435\u043c\u043e\u0441\u0442\u0438.<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041a\u043e\u0434<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\">\/\/h UCLASS() class AGASBaseCharacter : public ACharacter, public IAbilitySystemInterface {     GENERATED_BODY() public:     AGASBaseCharacter();      UAbilitySystemComponent* GetAbilitySystemComponent() const override;  protected:     UPROPERTY()     UAbilitySystemComponent* AbilitySystemComponent; };  \/\/cpp AGASBaseCharacter::AGASBaseCharacter() {     AbilitySystemComponent = CreateDefaultSubobject&lt;UAbilitySystemComponent&gt;(&quot;AbilitySystemComponent&quot;); }  UAbilitySystemComponent* AGASBaseCharacter::GetAbilitySystemComponent() const {     return AbilitySystemComponent; }<\/code><\/pre>\n<\/div><\/div>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f, \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u043d\u0435 \u0437\u0430\u0431\u044b\u0442\u044c \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442-\u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430 \u043e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430.<\/p>\n<p>  \u0422.\u043a. \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043d\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u043d\u0430 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430 \u044d\u0444\u0444\u0435\u043a\u0442\u044b \u0438 \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0435\u0433\u043e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u044e, \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0439 AttributeSet, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u044d\u0442\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c.<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041a\u043e\u0434<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\"> #define ATTRIBUTE_ACCESSORS(ClassName, PropertyName)       \t\\     GAMEPLAYATTRIBUTE_PROPERTY_GETTER(ClassName, PropertyName) \\     GAMEPLAYATTRIBUTE_VALUE_GETTER(PropertyName)           \t\\     GAMEPLAYATTRIBUTE_VALUE_SETTER(PropertyName) UCLASS() class UGASAttributeSet : public UAttributeSet {     GENERATED_BODY() public:      UPROPERTY(BlueprintReadOnly)     FGameplayAttributeData Health = 100.0f;     ATTRIBUTE_ACCESSORS(UGASAttributeSet, Health)      UPROPERTY(BlueprintReadOnly)     FGameplayAttributeData MoveSpeed = 600.0f;     ATTRIBUTE_ACCESSORS(UGASAttributeSet, MoveSpeed) };<\/code><\/pre>\n<\/div><\/div>\n<p>  \u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0443\u0433\u0430\u0435\u0442 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043c\u0430\u043a\u0440\u043e\u0441\u043e\u0432. \u0412\u0441\u0435 \u043e\u043d\u0438 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u044b \u0432 \u0444\u0430\u0439\u043b\u0435 AttributeSet.h. \u0415\u0441\u043b\u0438 \u0432\u043a\u0440\u0430\u0442\u0446\u0435 \u2014 GAMEPLAYATTRIBUTE_PROPERTY_GETTER \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0433\u0435\u0442\u0442\u0435\u0440 \u0434\u043b\u044f \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0442\u0430, GAMEPLAYATTRIBUTE_VALUE_GETTER\/GAMEPLAYATTRIBUTE_VALUE_SETTER \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442 \u0433\u0435\u0442\u0442\u0435\u0440 \u0438 \u0441\u0435\u0442\u0442\u0435\u0440 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0442\u0430. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 2 \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0442\u0430 \u0432 \u043d\u0430\u0448 AttributeSet. \u042d\u0442\u043e MoveSpeed \u2014 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0431\u0435\u0433\u0430, Health \u2014 \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u0435.<\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u0438\u043c AttributeSet \u043a \u043d\u0430\u0448\u0435\u043c\u0443, \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u043c\u0443, \u043a\u043b\u0430\u0441\u0441\u0443 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430:<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041a\u043e\u0434<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\"> \/\/h UCLASS() class AGASBaseCharacter : public ACharacter, public IAbilitySystemInterface { ... protected:     UPROPERTY()     UGASAttributeSet* AttributeSet; ... };  \/\/cpp AGASBaseCharacter::AGASBaseCharacter() {     AttributeSet = CreateDefaultSubobject&lt;UGASAttributeSet&gt;(TEXT(&quot;AttributeSet&quot;)); }<\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0432\u044f\u0436\u0435\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 AttributeSet \u0441 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u044e \u043f\u0435\u0440\u0435\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430 \u0432 CharacterMovementComponent.<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041a\u043e\u0434<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\"> void AGASBaseCharacter::BeginPlay() {     Super::BeginPlay(); AbilitySystemComponent-&gt;GetGameplayAttributeValueChangeDelegate(AttributeSet-&gt;GetMoveSpeedAttribute()).AddUObject(this, &amp;AGASBaseCharacter::OnMovementAttributeChanged); }  void AGASBaseCharacter::OnMovementAttributeChanged(const FOnAttributeChangeData&amp; Data) {     GetCharacterMovement()-&gt;MaxWalkSpeed = AttributeSet-&gt;GetMoveSpeed(); } <\/code><\/pre>\n<\/div><\/div>\n<p>  \u041d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u0441 c++ \u043f\u043e\u043a\u0430 \u043c\u043e\u0436\u043d\u043e \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f. \u041a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u043c \u0438 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 UE4. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 Gameplay Ability Blueprint:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/hl\/k0\/uw\/hlk0uwwyr-3ddjbhvkz089c6a6s.png\"><\/div>\n<p>  \u042f \u043d\u0430\u0437\u0432\u0430\u043b \u0441\u0432\u043e\u044e \u0430\u0431\u0438\u043b\u043a\u0443 GA_CharacterRoll.<\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 EventGraph \u0430\u0431\u0438\u043b\u043a\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 CommitExecute. \u0414\u0430\u043d\u043d\u044b\u0439 \u044d\u0432\u0435\u043d\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0438 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0430\u0431\u0438\u043b\u043a\u0438 (\u043f\u0440\u043e\u0448\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043d\u0430 Required\/Blocked \u0442\u0435\u0433\u0438, \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043f\u0438\u0441\u0430\u043b\u0438\u0441\u044c \u043a\u043e\u0441\u0442\u044b, \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043b\u0438\u0441\u044c \u043a\u0443\u043b\u0434\u0430\u0443\u043d\u044b). \u0421\u043b\u0435\u0434\u043e\u043c \u0437\u0430 \u043d\u0438\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0433\u0435\u0439\u043c\u043f\u043b\u0435\u0439 \u0442\u0430\u0441\u043a\u0443 PlayMontageAndWait. \u041f\u043e \u044d\u0432\u0435\u043d\u0442\u0443 OnCompleted \u0441\u0440\u0430\u0437\u0443 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u043c \u0430\u0431\u0438\u043b\u043a\u0443. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0441\u043a\u0438\u043b\u043b\u0430 \u043c\u044b \u043f\u0440\u043e\u0438\u0433\u0440\u0430\u0435\u043c \u043c\u043e\u043d\u0442\u0430\u0436, \u0430 \u043f\u043e \u0435\u0433\u043e \u043a\u043e\u043d\u0446\u0443 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043c \u0430\u0431\u0438\u043b\u043a\u0443. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0435\u043f\u043b\u043e\u0445\u043e.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ub\/m5\/y5\/ubm5y5zhdspmacvez2lbvdh3uas.png\"><\/div>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436 \u043d\u0435 \u043a\u0440\u0443\u0442\u0438\u043b\u0441\u044f \u043d\u0430 \u043c\u0435\u0441\u0442\u0435 (\u043a\u0430\u043a Sonic), \u043f\u0440\u0435\u0434\u0430\u0434\u0438\u043c \u0435\u043c\u0443 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u0435 \u0432\u043f\u0435\u0440\u0435\u0434. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u043e\u0434\u0443 ApplyRootMotionConstantForce. \u041e\u043d\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u0439 \u0438\u043c\u043f\u0443\u043b\u044c\u0441 \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u0423 \u043c\u0435\u043d\u044f \u0432 \u043f\u043e\u043b\u0435 Duration \u0441\u0442\u043e\u0438\u0442 -1. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436 \u0431\u0443\u0434\u0435\u0442 \u0434\u0432\u0438\u0433\u0430\u0442\u044c\u0441\u044f \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440, \u043f\u043e\u043a\u0430 \u043d\u0435 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u0441\u044f \u0430\u0431\u0438\u043b\u043a\u0430.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/c_\/fq\/gx\/c_fqgxn0qzwcmljvo6trvvnqcde.png\"><\/div>\n<p>  \u041e\u0441\u0442\u0430\u043b\u0430\u0441\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0447\u0430\u0441\u0442\u044c \u2014 \u0437\u0430\u043c\u0435\u0434\u043b\u0438\u0442\u044c \u0432\u0441\u0435\u0445 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u044b \u0437\u0430\u0434\u0435\u043b\u0438 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043a\u0443\u0432\u044b\u0440\u043a\u0430. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u0437\u043c\u0435\u043d\u0438\u043c CollisionResponse \u043d\u0430\u0448\u0435\u0439 \u043a\u0430\u043f\u0441\u0443\u043b\u044b \u0434\u043b\u044f Pawn \u043a\u0430\u043d\u0430\u043b\u0430 \u043d\u0430 \u0432\u0440\u0435\u043c\u044f \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0430\u0431\u0438\u043b\u043a\u0438. \u041f\u043e \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044e, \u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u0432\u0435\u0440\u043d\u0435\u043c \u0432\u0441\u0435 \u043d\u0430\u0437\u0430\u0434.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/r1\/jr\/yz\/r1jryzu92fkwfy-yfryc6gyvpzg.png\"><\/div>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/y0\/sh\/dj\/y0shdjxxy8nenlwkb5s-y0ckuqe.png\"><\/div>\n<p>  \u041c\u043e\u043c\u0435\u043d\u0442 \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u044f \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 Pawn \u0431\u0443\u0434\u0435\u043c \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u0432 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u0439 GameplayAblityTask.<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">GameplayAblityTask<\/b>                         <\/p>\n<div class=\"spoiler_text\">\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0432\u043e\u044e GAS \u0442\u0430\u0441\u043a\u0443 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043b\u0435\u0433\u043a\u043e. \u041d\u0443\u0436\u043d\u043e \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0442 UAbilityTask, \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043c\u0435\u0442\u043e\u0434 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f, \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c Activate\/OnDestroy \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u0442\u0430\u0441\u043a\u0443 \u043e\u0434\u0438\u043d \u0438\u043b\u0438 \u0431\u043e\u043b\u0435\u0435 \u0434\u0435\u043b\u0435\u0433\u0430\u0442\u043e\u0432. \u041d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u0432 GameplayAbility \u0438 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\/\u044d\u0432\u0435\u043d\u0442\u044b \u0442\u0430\u0441\u043a\u0438 (\u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043e \u0447\u0435\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043c\u043d\u0438\u0442\u044c \u2014 \u0432\u0441\u0435 \u0434\u0435\u043b\u0435\u0433\u0430\u0442\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043e\u0434\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430).<\/div>\n<\/p><\/div>\n<p>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u0435\u0440\u043d\u0435\u043c\u0441\u044f \u0432 c++ \u0438 \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u0447\u0443\u0442\u044c-\u0447\u0443\u0442\u044c \u043a\u043e\u0434\u0430:<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041a\u043e\u0434<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\"> \/\/h DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FGASWaitOverlapDelegate, const FGameplayAbilityTargetDataHandle&amp;, TargetData);  UCLASS() class UGASAbilityTask_WaitForComponentOverlap : public UAbilityTask {     GENERATED_BODY()      UPROPERTY(BlueprintAssignable)     FGASWaitOverlapDelegate OnOverlap;      virtual void Activate() override;      UFUNCTION(BlueprintCallable, Category = &quot;Ability|Tasks&quot;, meta = (HidePin = &quot;OwningAbility&quot;, DefaultToSelf = &quot;OwningAbility&quot;))     static UGASAbilityTask_WaitForComponentOverlap* WaitForComponentOverlap(UGameplayAbility* OwningAbility, UPrimitiveComponent* Component);  private:     virtual void OnDestroy(bool AbilityEnded) override;      UFUNCTION()     void OnHitCallback(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult&amp; SweepResult);      UPROPERTY()     UPrimitiveComponent* Component; };  \/\/cpp void UGASAbilityTask_WaitForComponentOverlap::Activate() {     Super::Activate();      if (Component)     {         Component-&gt;OnComponentBeginOverlap.AddDynamic(this, &amp;UGASAbilityTask_WaitForComponentOverlap::OnHitCallback);     } }  UGASAbilityTask_WaitForComponentOverlap* UGASAbilityTask_WaitForComponentOverlap::WaitForComponentOverlap(UGameplayAbility* OwningAbility, UPrimitiveComponent* Component) {     auto abilityTask = NewAbilityTask&lt;UGASAbilityTask_WaitForComponentOverlap&gt;(OwningAbility);     abilityTask-&gt;Component = Component;     return abilityTask; }  void UGASAbilityTask_WaitForComponentOverlap::OnDestroy(bool AbilityEnded) {     if (Component)     {         Component-&gt;OnComponentBeginOverlap.RemoveAll(this);     }      Super::OnDestroy(AbilityEnded); }  void UGASAbilityTask_WaitForComponentOverlap::OnHitCallback(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult&amp; SweepResult) {     if (OtherActor)     {         auto targetData = new FGameplayAbilityTargetData_ActorArray();         targetData-&gt;TargetActorArray.Add(OtherActor);          auto targetDataHandle = FGameplayAbilityTargetDataHandle(targetData);         if (ShouldBroadcastAbilityTaskDelegates())         {             OnOverlap.Broadcast(targetDataHandle);         }     } } <\/code><\/pre>\n<\/div><\/div>\n<p>  \u0421\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043c\u0435\u0442\u043e\u0434 WaitForComponentOverlap \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043d\u0430\u0448\u0435\u0439 \u0442\u0430\u0441\u043a\u0438. \u041d\u0430 \u0432\u0445\u043e\u0434 \u043c\u044b \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0443 \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u043c \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c Overlap \u044d\u0432\u0435\u043d\u0442\u044b, \u0437\u0430\u0442\u0435\u043c \u0447\u0435\u0440\u0435\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u044e NewAbilityTask \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0435\u0435. \u0412 \u043c\u0435\u0442\u043e\u0434\u0435 Activate \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c\u0441\u044f \u043d\u0430 Overlap \u044d\u0432\u0435\u043d\u0442\u044b \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0438 \u043f\u043e \u0438\u0445 \u043d\u0430\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0434\u0435\u043b\u0435\u0433\u0430\u0442 OnOverlap. \u0421\u0442\u043e\u0438\u0442 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0432 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u043c\u044b \u043e\u0442\u0434\u0430\u0435\u043c \u043d\u0435 \u0441\u0430\u043c\u043e\u0433\u043e \u0430\u043a\u0442\u043e\u0440\u0430, \u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 FGameplayAbilityTargetDataHandle. \u042d\u0442\u043e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u0446\u0435\u043b\u044c, \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043b\u0438\u0431\u043e \u0430\u043a\u0442\u043e\u0440\u043e\u0432 \u043b\u0438\u0431\u043e \u0442\u043e\u0447\u043a\u0443 \u0432 \u043c\u0438\u0440\u0435, \u043d\u0430\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f ( \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u2014 \u043d\u0430\u043b\u043e\u0436\u0438\u0442\u044c \u044d\u0444\u0444\u0435\u043a\u0442). \u0422.\u043a. \u044d\u0444\u0444\u0435\u043a\u0442\u044b \u043c\u044b \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c \u043a \u0430\u043a\u0442\u043e\u0440\u0430\u043c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c FGameplayAbilityTargetData_ActorArray \u0438 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c Overlap \u0430\u043a\u0442\u043e\u0440\u0430. \u0412 \u043c\u0435\u0442\u043e\u0434\u0435 OnDestroy \u043e\u0442\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c\u0441\u044f \u043e\u0442 \u0432\u0441\u0435\u0445 \u044d\u0432\u0435\u043d\u0442\u043e\u0432 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043b\u0438\u0441\u044c. <\/p>\n<p>  \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u0432 \u0430\u043d\u0440\u0438\u043b, \u0441\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u044d\u0444\u0444\u0435\u043a\u0442 \u0437\u0430\u043c\u0435\u0434\u043b\u0435\u043d\u0438\u044f. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u0431\u043b\u044e\u043f\u0440\u0438\u043d\u0442 \u0438 \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u043c \u0435\u0433\u043e \u043e\u0442 GameplayEffect \u043a\u043b\u0430\u0441\u0441\u0430.<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">GameplayEffect<\/b>                         <\/p>\n<div class=\"spoiler_text\">\u0410\u0442\u043e\u043c\u0430\u0440\u043d\u0430\u044f \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044c \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u0438\u0440\u0443\u0435\u0442 \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0442 \u0441\u0435\u0442\u043e\u043c \u0438 \u0442\u0435\u0433\u0430\u043c\u0438 \u0442\u043e\u0433\u043e, \u043d\u0430 \u043a\u043e\u0433\u043e \u043d\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u044d\u0444\u0444\u0435\u043a\u0442. \u0421\u0442\u043e\u0438\u0442 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0433\u0435\u0439\u043c\u043b\u0435\u0439 \u044d\u0444\u0444\u0435\u043a\u0442\u0430 \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e:<\/p>\n<p>  \u0412\u0441\u0435\u0433\u043e \u0431\u044b\u0432\u0430\u0435\u0442 3 \u0432\u0438\u0434\u0430 \u044d\u0444\u0444\u0435\u043a\u0442\u043e\u0432: Instant, Infinite, Has Duration. \u042d\u0442\u0438\u043c \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 DurationPolicy.  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/zf\/_x\/r7\/zf_xr7mczuivjcs3v1qgcvsqklm.png\"><\/div>\n<p>  <\/p>\n<ul>\n<li>Instant \u2014 \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u044b\u0439 \u044d\u0444\u0444\u0435\u043a\u0442, \u043a\u043e\u0442\u0440\u044b\u0439 \u043c\u0435\u043d\u044f\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0442 \u0441\u0435\u0442\u0435. \u0412\u0430\u0436\u043d\u043e \u043f\u043e\u043c\u043d\u0438\u0442\u044c, \u0447\u0442\u043e Instant \u044d\u0444\u0444\u0435\u043a\u0442 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u043d\u0430 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0442\u0435\u0433\u043e\u0432, \u043e\u043d\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u043e\u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u044b<\/li>\n<li>Infinite \u2014 \u044d\u0444\u0444\u0435\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0435\u0434\u0438\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f AttributeSet \u0438 \u043d\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442\/\u0441\u043d\u0438\u043c\u0430\u0435\u0442 \u0441 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u0442\u0435\u0433\u0438. \u0421\u0430\u043c \u044d\u0444\u0444\u0435\u043a\u0442 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u0441\u043d\u044f\u0442\u044c \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u044f\u0432\u043d\u043e.<\/li>\n<li>Has Duration \u2014 \u0433\u0435\u0439\u043c\u043f\u043b\u0435\u0439 \u044d\u0444\u0444\u0435\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u041f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u0435\u043d infinite \u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0441\u043d\u044f\u0442 \u043f\u043e \u0438\u0441\u0442\u0435\u0447\u0435\u043d\u0438\u044e \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/li>\n<\/ul>\n<p>  \u0412\u0430\u0436\u043d\u043e \u043f\u043e\u043c\u043d\u0438\u0442\u044c, \u0447\u0442\u043e \u0432\u0441\u0435 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0438 \u0441 AttributeSet, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u044f\u0442 Infinite \u0438 Has Duration \u044d\u0444\u0444\u0435\u043a\u0442\u044b (\u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u043f\u0440\u043e\u0441\u0442\u043e Duration \u044d\u0444\u0444\u0435\u043a\u0442\u044b) \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u043c\u0435\u043d\u0435\u043d\u044b \u043f\u0440\u0438 \u0441\u043d\u044f\u0442\u0438\u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u0430.<br \/>  \u0422\u0430\u043a \u0436\u0435 Duration \u044d\u0444\u0444\u0435\u043a\u0442\u044b \u043c\u043e\u0433\u0443\u0442 \u0438\u043c\u0435\u0442\u044c \u043f\u0435\u0440\u0438\u043e\u0434. \u0412 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u0440\u0430\u0437 \u0432 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u043f\u0435\u0440\u0438\u043e\u0434, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0432\u0441\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0447\u0442\u043e \u043e\u043d\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u044f\u0442 \u0431\u0443\u0434\u0443\u0442 \u0442\u0440\u0430\u043a\u0442\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a Instant \u044d\u0444\u0444\u0435\u043a\u0442\u044b.<\/p>\n<p>  \u041a\u0430\u0436\u0434\u044b\u0439 \u044d\u0444\u0444\u0435\u043a\u0442 \u043c\u043e\u0436\u0435 \u0438\u043c\u0435\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u043e\u0434\u0438\u0444\u0430\u0435\u0440\u043e\u0432 \u2014 \u0430\u0442\u043e\u043c\u0430\u0440\u043d\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043d\u0430\u0434 \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0442 \u0441\u0435\u0442\u043e\u043c. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u0434 \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0442 \u0441\u0435\u0442\u043e\u043c: Add\/Multiply\/Override. \u0422\u043e, \u043d\u0430 \u043a\u0430\u043a\u043e\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u0439 \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c ModifierMagnitude. \u0415\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0438\u0434\u043e\u0432 \u043c\u043e\u0434\u0438\u0444\u0430\u0435\u0440\u043e\u0432:  <\/p>\n<ul>\n<li>Scalable float \u2014 \u043e\u0431\u044b\u0447\u043d\u043e\u0435 float \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043e \u0438\u0437 CurveTable. <\/li>\n<li>AttributeBased \u2014 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0442\u0430<\/li>\n<li>CustomCalculation \u2014 \u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0439 C++ \u043a\u043b\u0430\u0441\u0441 \u0434\u043b\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0442\u0430<\/li>\n<li>SetByCaller \u2014 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0442\u0430 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e \u0438\u0437\u0432\u043d\u0435 (\u0447\u0435\u0440\u0435\u0437 FGameplayEffectSpec, \u0441 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u043e\u0439 \u043a \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c\u0443 \u0442\u0435\u0433\u0443).<\/li>\n<\/ul>\n<p>  \u041a\u0430\u0436\u0434\u044b\u0439 \u044d\u0444\u0444\u0435\u043a\u0442 \u0438\u043c\u0435\u0435\u0442 \u0448\u0430\u043d\u0441 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f (Chance to Apply to Target) \u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f. \u042d\u0442\u043e \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043a\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f, \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c\u044b\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u0435\u0433\u043e\u0432 (Application Tag Requirements), \u0442\u0430\u043a \u0438 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0435, \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c\u044b\u0435 \u0438\u0437\u0432\u043d\u0435 (\u043a\u043b\u0430\u0441\u0441 UGameplayEffectCustomApplicationRequirement).<\/p>\n<p>  \u041a\u0430\u043a \u0443\u0436\u0435 \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043b\u043e\u0441\u044c \u0440\u0430\u043d\u0435\u0435, \u044d\u0444\u0444\u0435\u043a\u0442\u044b \u043c\u043e\u0433\u0443\u0442 \u043d\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u0438\u043b\u0438 \u0441\u043d\u0438\u043c\u0430\u0442\u044c \u0442\u0435\u0433\u0438 (Granted Tags), \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043d\u0438\u043c\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u044f \u0442\u0435\u0445 \u0438\u043b\u0438 \u0438\u043d\u044b\u0445 \u0442\u0435\u0433\u043e\u0432 (RemovalTag Requirements), \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u043d\u0438\u043c\u0430\u0442\u044c \u0441 \u0442\u0430\u0440\u0433\u0435\u0442\u0430 \u0434\u0440\u0443\u0433\u0438\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u044f\u044e\u0442 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c Remove Gameplay Effects with Tags \u0438\u043b\u0438 Remove Gameplay Effect Query.<\/p>\n<p>  \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u044d\u0442\u043e \u043d\u0435 \u0432\u0435\u0441\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0433\u0435\u0439\u043c\u043f\u043b\u0435\u0439 \u044d\u0444\u0444\u0435\u043a\u0442\u043e\u0432, \u044f \u0443\u043f\u0443\u0441\u0442\u0438\u043b \u043c\u043e\u043c\u0435\u043d\u0442\u044b \u0441 GameplayEffectExecutionCalculation, \u0441\u0442\u0430\u043a\u0430\u043c\u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u043e\u0432, \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435\u043c \u0441\u0442\u0430\u043a\u043e\u0432, Immunity \u0442\u0435\u0433\u0430\u043c\u0438, GameplayCue \u0438 \u043c\u043d\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u043e\u0435. \u0427\u0430\u0441\u0442\u044c \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u043e \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0434\u0430\u043b\u044c\u0448\u0435, \u0447\u0430\u0441\u0442\u044c \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0442\u0440\u043e\u043d\u0443\u0442\u043e \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0438\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445.<\/p><\/div>\n<\/p><\/div>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/gg\/67\/vn\/gg67vnw8y0hmfhpbemqk6usimic.png\"><\/div>\n<p>  \u0412 \u044d\u0444\u0444\u0435\u043a\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c DurationPolicy -&gt; Has Duration \u0438 \u043c\u0435\u043d\u044f\u0435\u043c \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f. \u0423 \u043c\u0435\u043d\u044f \u044d\u0442\u043e 5 \u0441\u0435\u043a\u0443\u043d\u0434. \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u044d\u0444\u0444\u0435\u043a\u0442 Modifier \u0434\u043b\u044f \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0442\u0430 MoveSpeed, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c Multiply \u0438 \u0441\u0442\u0430\u0432\u0438\u043c \u043c\u0430\u0433\u043d\u0438\u0442\u0443\u0434\u0443 \u0432 0.2 (\u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0441\u043d\u0438\u0436\u0430\u0435\u043c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432\u0440\u0430\u0433\u043e\u0432 \u043d\u0430 80%). <\/p>\n<p>  \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u0432 \u044d\u0432\u0435\u043d\u0442 \u0433\u0440\u0430\u0444 \u0430\u0431\u0430\u043b\u043a\u0438 GA_CharacterRoll \u0438 \u0432 \u0441\u0430\u043c\u044b\u0439 \u043a\u043e\u043d\u0435\u0446 \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u0443\u044e \u0433\u0435\u0439\u043c\u043f\u043b\u0435\u0439 \u0442\u0430\u0441\u043a\u0443 \u0438 \u043d\u0430\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u0430:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/hj\/vr\/de\/hjvrdeeaulmtucta7h6d75z3cvy.png\"><\/div>\n<p>  \u042d\u0444\u0444\u0435\u043a\u0442 \u044f \u0432\u044b\u043d\u0435\u0441 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0441 \u0442\u0438\u043f\u043e\u043c Class Reference, \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432\u043f\u0438\u0441\u0430\u043b \u0441\u0432\u0435\u0436\u0435\u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u044d\u0444\u0444\u0435\u043a\u0442 GE_Slowdown. \u0421\u0430\u043c\u0430 \u0430\u0431\u0438\u043b\u043a\u0430 \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d\u0430, \u043e\u0434\u043d\u0430\u043a\u043e \u043c\u044b \u043d\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0438 \u043f\u043e \u0435\u0435 \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438. \u041a\u0430\u043a \u044f \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043b \u0432 \u0441\u0430\u043c\u043e\u043c \u043d\u0430\u0447\u0430\u043b\u0435, GAS \u0443\u043c\u0435\u0435\u0442 \u043f\u0440\u0438\u0432\u044f\u0437\u044b\u0432\u0430\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044e \u0441\u043a\u0438\u043b\u043e\u0432 \u043a InputAction \u0434\u0432\u0438\u0436\u043a\u0430. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0432 Project Settings -&gt; Engine\/Input \u0434\u043e\u0431\u0430\u0432\u0438\u043c 2 \u043d\u043e\u0432\u044b\u0445 Action Mapping.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/vs\/tp\/ye\/vstpyecq54necthh-des8eealpq.png\"><\/div>\n<p>  \u042f \u0434\u043e\u0431\u0430\u0432\u0438\u043b Roll \u0438 Kick \u044d\u043a\u0448\u0435\u043d\u044b. \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0443 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0430\u0431\u0438\u043b\u043a\u0438 \u043f\u043e \u043d\u0430\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044e \u044d\u0442\u0438\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043e\u043f\u044f\u0442\u044c \u0432\u0435\u0440\u043d\u0435\u043c\u0441\u044f \u0432 c++. \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c enum \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f:<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041a\u043e\u0434<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\"> UENUM(BlueprintType) enum class EGASInputActions : uint8 {     None,     Roll,     Kick }; <\/code><\/pre>\n<\/div><\/div>\n<p>  \u0412 \u043a\u043b\u0430\u0441\u0441 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043c\u0430\u043f\u043f\u0438\u043d\u0433 \u044d\u043a\u0448\u0435\u043d\u0430 \u043d\u0430 \u0430\u0431\u0438\u043b\u0438\u0442\u0438<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041a\u043e\u0434<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\"> UCLASS() class AGASBaseCharacter : public ACharacter, public IAbilitySystemInterface { ... public:     UPROPERTY(EditDefaultsOnly)     TMap&lt;EGASInputActions, TSubclassOf&lt;UGameplayAbility&gt;&gt; StandartAbilities; }; <\/code><\/pre>\n<\/div><\/div>\n<p>  \u0438 \u0432 BeginPlay \u00ab\u0432\u044b\u0434\u0430\u0434\u0438\u043c\u00bb \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0443 \u0432\u0441\u0435 \u0430\u0431\u0438\u043b\u043a\u0438, \u0447\u0442\u043e \u043c\u044b \u043d\u0430\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041a\u043e\u0434<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\"> void AGASBaseCharacter::BeginPlay() { ...     for (const auto&amp; ability : StandartAbilities)     {    \t AbilitySystemComponent-&gt;GiveAbility(FGameplayAbilitySpec(ability.Value, 1, static_cast&lt;int32&gt;(ability.Key)));     } ... } <\/code><\/pre>\n<\/div><\/div>\n<p>  \u0421\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435 \u2014 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0438\u043c\u0435\u043d\u0430\u043c\u0438 Action Mapping \u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u043c\u0438 EGASInputActions. \u0421\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 SetupPlayerInputComponent, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0442\u0443\u0434\u0430 \u0441\u0442\u0440\u043e\u043a\u0443:<\/p>\n<pre><code class=\"cpp\">AbilitySystemComponent-&gt;BindAbilityActivationToInputComponent(PlayerInputComponent, FGameplayAbilityInputBinds(FString(&quot;ConfirmTarget&quot;), FString(&quot;CancelTarget&quot;), FString(&quot;EGASInputActions&quot;)));<\/code><\/pre>\n<p>  \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u0432 \u0430\u043d\u0440\u0438\u043b, \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0431\u043b\u044e\u043f\u0440\u0438\u043d\u0442 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0434\u043b\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c GA_CharacterRoll<\/p>\n<div style=\"text-align:center;\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/wk\/di\/bq\/wkdibqyydbzh-czcsetxgl4prqi.png\" width=\"640\" height=\"360\"><\/div>\n<p>  \u0412\u043e\u0442 \u0438 \u0432\u0441\u0435, \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u0443\u044e \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c.<\/p>\n<h3>\u0410\u0431\u0438\u043b\u043a\u0430 \u043f\u0438\u043d\u043e\u043a<\/h3>\n<p>  \u041f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043f\u0438\u043d\u043a\u0430. \u0421\u0443\u0442\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0430: \u0438\u0433\u0440\u043e\u043a \u0434\u0435\u043b\u0430\u0435\u0442 \u0443\u0434\u0430\u0440 \u043d\u043e\u0433\u043e\u0439, \u0435\u0441\u043b\u0438 \u043e\u043d \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u043f\u043e \u0432\u0440\u0430\u0433\u0443, \u0442\u043e \u0442\u043e\u0442 \u043e\u0442\u043b\u0435\u0442\u0430\u0435\u0442 \u043d\u0430\u0437\u0430\u0434, \u043f\u0430\u0434\u0430\u0435\u0442 \u043d\u0430 \u0441\u043f\u0438\u043d\u0443 \u0438 \u0437\u0430\u0442\u0435\u043c \u0432\u0441\u0442\u0430\u0435\u0442. \u041c\u0435\u0445\u0430\u043d\u0438\u0447\u0435\u0441\u043a\u0438 \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0430\u0431\u0438\u043b\u043a\u0443 \u043f\u0438\u043d\u043a\u0430, \u0432 \u043d\u0443\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0446\u0435\u043b\u044c \u043f\u0435\u0440\u0435\u0434 \u0441\u043e\u0431\u043e\u0439, \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c \u043d\u0430 \u043d\u0435\u0435 \u044d\u0444\u0444\u0435\u043a\u0442 \u043e\u0442\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u043d\u0438\u044f, \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u043c \u0430\u0431\u0438\u043b\u043a\u0443.<\/p>\n<p>  \u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0439 \u0430\u0431\u0438\u043b\u043a\u0438, \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0431\u043b\u044e\u043f\u0440\u0438\u043d\u0442, \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a\u0430 GameplayAbility. \u0412 \u044d\u0432\u0435\u043d\u0442 CommitExecute \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u0430\u0441\u043a\u0443 \u043d\u0430 \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u043d\u0442\u0430\u0436\u0430 \u0438 \u0442\u0430\u0441\u043a\u0443 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f GameplayEvent. \u0421\u0430\u043c \u043f\u043e \u0441\u0435\u0431\u0435 GameplayEvent \u044d\u0442\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0438\u043c\u0435\u0435\u0442 \u0442\u0435\u0433 \u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 (Payload).<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/7p\/xe\/rq\/7pxerqiresbysywd-bj-ov3nx1s.png\"><\/div>\n<p>  \u041a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u043e\u0436\u0438\u0434\u0430\u0435\u043c \u044d\u0432\u0435\u043d\u0442\u0430 Event.Montage.Kick. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044d\u0442\u043e\u0442 \u044d\u0432\u0435\u043d\u0442 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0441\u044b\u043b\u0430\u0442\u044c. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u043e\u0432\u044b\u0439 \u0431\u043b\u044e\u043f\u0440\u0438\u043d\u0442 (BP_AnimNotify_SendGameplayEvent) \u0438 \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u043c \u0435\u0433\u043e \u043e\u0442 AnimNotify. \u0412 Variables \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043e\u0434\u043d\u0443 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0441 \u0438\u043c\u0435\u043d\u0435\u043c EventTag \u0438 \u0442\u0438\u043f\u043e\u043c GameplayTag. \u041f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e Received_Notify \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u043c \u043d\u0430\u0448 \u043d\u043e\u0432\u044b\u0439 GameplayEvent \u0430\u043a\u0442\u043e\u0440\u0443 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0434\u0430\u043d\u043d\u044b\u0439 \u043d\u043e\u0442\u0438\u0444\u0430\u0439. <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ya\/ia\/j7\/yaiaj7n_zfhwitd6limdnb3p7gg.png\"><\/div>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0432 \u043c\u043e\u043d\u0442\u0430\u0436 \u043f\u0438\u043d\u043a\u0430 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u0430\u0448 \u043d\u043e\u0432\u044b\u0439 \u043d\u043e\u0442\u0438\u0444\u0430\u0439, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 EventTag \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0440\u0430\u0432\u043d\u044b\u043c Event.Montage.Kick:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/vh\/aq\/eg\/vhaqegby_wxs74b3gpuyglaosdq.png\"><\/div>\n<p>  \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0430\u0431\u0438\u043b\u043a\u0438. \u041f\u043e \u043d\u0430\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044e GameplayEvent \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0432\u0441\u0435\u0433\u043e-\u0442\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0446\u0435\u043b\u044c \u0438 \u043d\u0430\u043b\u043e\u0436\u0438\u0442\u044c \u043d\u0430 \u043d\u0435\u0435 \u044d\u0444\u0444\u0435\u043a\u0442 \u043f\u0430\u0434\u0435\u043d\u0438\u044f. \u041f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u0435\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e.<\/p>\n<p>  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0431\u043e\u043b\u0435\u0435 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u043a \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u043e\u0432, \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u043c \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u043a\u0430\u043a\u043e\u0433\u043e-\u043b\u0438\u0431\u043e \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430, \u043e\u0434\u043d\u0430\u043a\u043e \u043d\u0443\u0436\u043d\u043e \u043a\u0430\u043a\u0438\u043c-\u0442\u043e \u0433\u0435\u0439\u043c-\u043c\u0435\u0445\u0430\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0440\u0435\u0430\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0442\u043e\u0433\u043e \u0438\u043b\u0438 \u0438\u043d\u043e\u0433\u043e \u044d\u0444\u0444\u0435\u043a\u0442\u0430. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u043e\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u044d\u0444\u0444\u0435\u043a\u0442\u0430 \u0432 c++:<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041a\u043e\u0434<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\"> UCLASS(BlueprintType) class UKnockbackGameplayEffect : public UGameplayEffect {     GENERATED_BODY()  public:      UPROPERTY(EditDefaultsOnly)     float Strength = 100; }; <\/code><\/pre>\n<\/div><\/div>\n<p>  \u041c\u0430\u043d\u0438\u043f\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u0443\u0434\u0435\u043c \u00ab\u0441\u0438\u043b\u043e\u0439\u00bb \u043f\u0438\u043d\u043a\u0430, \u0447\u0435\u043c \u043e\u043d\u0430 \u0431\u043e\u043b\u044c\u0448\u0435, \u0442\u0435\u043c \u0434\u0430\u043b\u044c\u0448\u0435 \u043e\u0442\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442 \u043d\u0430\u0448\u0443 \u0446\u0435\u043b\u044c. \u0412 \u043d\u0430\u0448\u0435\u043c \u0431\u0430\u0437\u043e\u0432\u043e\u043c \u043a\u043b\u0430\u0441\u0441\u0435 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430 \u043f\u043e\u0434\u043f\u0438\u0448\u0435\u043c\u0441\u044f \u043d\u0430 \u0434\u0435\u043b\u0435\u0433\u0430\u0442 OnGameplayEffectAppliedDelegateToSelf \u2014 \u043e\u043d \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u0433\u0435\u0439\u043c\u043f\u043b\u0435\u0439 \u044d\u0444\u0444\u0435\u043a\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u043e\u0432\u043d\u0435\u0440\u0430 AbilitySystemComponent (\u043e\u0434\u043d\u0430\u043a\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u0441\u0442\u043e\u0438\u0442 \u044d\u0442\u043e \u043f\u043e\u043c\u043d\u0438\u0442\u044c). <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041a\u043e\u0434<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\"> \/\/h UCLASS() class AGASBaseCharacter : public ACharacter, public IAbilitySystemInterface {    ...     UFUNCTION()     void OnGameplayEffectApplied(UAbilitySystemComponent* Source, const FGameplayEffectSpec&amp; Spec, FActiveGameplayEffectHandle Handle);    ... };  \/\/cpp  void AGASBaseCharacter::BeginPlay() { ...     AbilitySystemComponent-&gt;OnGameplayEffectAppliedDelegateToSelf.AddUObject(this, &amp;AGASBaseCharacter::OnGameplayEffectApplied); ... }  void AGASBaseCharacter::OnGameplayEffectApplied(UAbilitySystemComponent* Source, const FGameplayEffectSpec&amp; Spec, FActiveGameplayEffectHandle Handle) {     if (auto knockbackEffect = Cast&lt;UKnockbackGameplayEffect&gt;(Spec.Def))     {         if (auto movementComponent = GetCharacterMovement())         {             auto instigator = Spec.GetEffectContext().GetInstigator();             auto direction = instigator ? (GetActorLocation() - instigator-&gt;GetActorLocation()).GetSafeNormal2D() : GetActorForwardVector() * -1.0f;              auto constantForce = new FRootMotionSource_ConstantForce();             constantForce-&gt;AccumulateMode = ERootMotionAccumulateMode::Additive;             constantForce-&gt;Force = direction * knockbackEffect-&gt;Strength;             constantForce-&gt;Duration = Spec.GetDuration();             constantForce-&gt;FinishVelocityParams.Mode = ERootMotionFinishVelocityMode::SetVelocity;             constantForce-&gt;FinishVelocityParams.SetVelocity = FVector::ZeroVector;             movementComponent-&gt;ApplyRootMotionSource(constantForce);         }     } } <\/code><\/pre>\n<\/div><\/div>\n<p>  \u0412 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0447\u0442\u043e \u043d\u0430 \u043d\u0430\u0441 \u043f\u044b\u0442\u0430\u044e\u0442\u0441\u044f \u043d\u0430\u043b\u043e\u0436\u0438\u0442\u044c knockback \u044d\u0444\u0444\u0435\u043a\u0442, \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u0442\u0430\u043a \u2014 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c \u0443\u0436\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0439 RootMotionSource \u0432 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438, \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u043f\u043e\u043b\u043e\u0436\u043d\u043e\u043c <br \/>  \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0443 \u044d\u0444\u0444\u0435\u043a\u0442\u0430. \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0431\u043b\u044e\u043f\u0440\u0438\u043d\u0442 KnockbackGameplayEffect.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/51\/dg\/vl\/51dgvldakruvs43_zgpiix_hslg.png\"><\/div>\n<p>  \u0412 \u0431\u043b\u044e\u043f\u0440\u0438\u043d\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0441\u0438\u043b\u0443 \u0438 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u044d\u0444\u0444\u0435\u043a\u0442\u0430. \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043f\u0440\u043e\u0438\u0433\u0440\u0430\u0442\u044c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e \u043f\u0430\u0434\u0435\u043d\u0438\u044f. \u0414\u043b\u044f \u0432\u0441\u0435\u0445 \u00ab\u043a\u043e\u0441\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445\u00bb \u044d\u0444\u0444\u0435\u043a\u0442\u043e\u0432 (\u0437\u0432\u0443\u043a\u0438, \u043f\u0430\u0440\u0442\u0438\u043a\u043b\u044b, \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 \u0438 \u043f\u0440.) \u0432 GAS \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0430 \u043c\u0435\u0445\u0430\u043d\u0438\u043a\u0430 GameplayCue. \u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043e\u043d\u0430 \u0442\u0430\u043a \u0436\u0435, \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u0433\u0435\u0439\u043c\u043f\u043b\u0435\u0439 \u0442\u0435\u0433\u043e\u0432, \u0441 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435\u043c: \u0442\u0435\u0433 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0432 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 GameplayCue. \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043d\u043e\u0432\u0443\u044e \u0433\u0435\u0439\u043c\u043f\u043b\u0435\u0439 \u043a\u044c\u044e \u0432 \u043d\u0430\u0448 \u044d\u0444\u0444\u0435\u043a\u0442.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/_v\/tn\/xj\/_vtnxjbkim_5_mkh2v1cee8x26y.png\"><\/div>\n<p>  \u0422.\u043a. \u043d\u0430\u0448 \u044d\u0444\u0444\u0435\u043a\u0442 \u043d\u0435 \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u0442 \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430, \u0443\u0431\u0435\u0440\u0435\u043c \u0447\u0435\u043a\u0431\u043e\u043a\u0441 \u201cRequire Modifier Success to Trigger Cues\u201d. \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0434\u0430\u043d\u043d\u043e\u0439 Cue, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043e\u0442\u043a\u0440\u043e\u0435\u043c \u043e\u043a\u043d\u043e GameplayCueEditor (Window -&gt; GameplayCueEditor): <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/6m\/s1\/j0\/6ms1j0uy1jsoeyiojmowi2mlm8e.png\"><\/div>\n<p>  \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c Add new \u043d\u0430\u043f\u0440\u043e\u0442\u0438\u0432 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0435\u0433\u043e \u043d\u0430\u0441 \u0442\u0435\u0433\u0430 (GameplayCue.Knockback) \u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u043c Gameplay Cue Notify Static \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a. \u041f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c OnActivate \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438 \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0435\u043c \u0432 \u043d\u0435\u0439 \u043c\u043e\u043d\u0442\u0430\u0436 \u043f\u0430\u0434\u0435\u043d\u0438\u044f. <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/2f\/pp\/cx\/2fppcxqfz-kauzobef3iwjkgqji.png\"><\/div>\n<p>  \u0412\u0441\u0435, \u043d\u0430 \u044d\u0442\u043e\u043c \u044d\u0444\u0444\u0435\u043a\u0442 \u043f\u0430\u0434\u0435\u043d\u0438\u044f \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d. \u041c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u0434 \u043f\u043e \u0435\u0433\u043e \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u0432 \u0431\u043b\u044e\u043f\u0440\u0438\u043d\u0442 \u0430\u0431\u0438\u043b\u043a\u0438:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/es\/ur\/nk\/esurnkplsnanu7ht9z3zive969u.png\"><\/div>\n<p>  \u041d\u0435 \u0431\u0443\u0434\u0443 \u0441\u0438\u043b\u044c\u043d\u043e \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 GetTarget. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0446\u0435\u043b\u0435\u0439 \u0432 GAS \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u043c\u0435\u0445\u0430\u043d\u0438\u043a\u0430 (TargetActor), \u043d\u043e \u043f\u043e\u043a\u0430 \u0447\u0442\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u044d\u0442\u043e\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0441\u0430\u043c\u044b\u043c \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u2014 LineTrace.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/t1\/rv\/r3\/t1rvr3cqlpeq2b--ij20kf0599k.png\"><\/div>\n<p>  \u041f\u0430\u0434\u0435\u043d\u0438\u0435 \u043c\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b\u0438. \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0448\u0430 \u0446\u0435\u043b\u044c \u043f\u043e\u0442\u0435\u0440\u044f\u043b\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0434\u0432\u0438\u0433\u0430\u0442\u044c\u0441\u044f. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u044d\u0444\u0444\u0435\u043a\u0442 \u2014 \u0441\u0442\u0430\u043d. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u0431\u043b\u044e\u043f\u0440\u0438\u043d\u0442 \u043e\u0442 \u043a\u043b\u0430\u0441\u0441\u0430 GameplayEffect. \u0412\u0441\u0435 \u0447\u0442\u043e \u043e\u043d \u0431\u0443\u0434\u0434\u0435\u0442 \u0434\u0435\u043b\u0430\u0442\u044c \u2014 \u044d\u0442\u043e \u043d\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u043d\u0430 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430 \u0442\u0435\u0433 Effect.Stun \u043d\u0430 \u043d\u0443\u0436\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/9q\/7f\/fj\/9q7ffj6xexlt7yz7phdngv8mvh0.png\"><\/div>\n<p>  \u041f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u0432 c++ \u0438 \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u044f:<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041a\u043e\u0434<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\"> \/\/h UCLASS() class AGASBaseCharacter : public ACharacter, public IAbilitySystemInterface {   ...      UFUNCTION()     void OnStunTagChanged(const FGameplayTag Tag, int32 Count); ... };  \/\/cpp  void AGASBaseCharacter::BeginPlay() { ...  AbilitySystemComponent-&gt;RegisterGameplayTagEvent(FGameplayTag::RequestGameplayTag(&quot;Effect.Stun&quot;)).AddUObject(this, &amp;AGASBaseCharacter::OnStunTagChanged);  ... }  void AGASBaseCharacter::OnStunTagChanged(const FGameplayTag Tag, int32 Count) {     if (auto aiController = Cast&lt;AAIController&gt;(GetController()))     {    \t if (Count &gt; 0)    \t {    \t\t aiController-&gt;GetBrainComponent()-&gt;PauseLogic(TEXT(&quot;&quot;));    \t }    \t else    \t {    \t\t aiController-&gt;GetBrainComponent()-&gt;ResumeLogic(TEXT(&quot;&quot;));    \t }     } } <\/code><\/pre>\n<\/div><\/div>\n<p>  \u041f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c\u0441\u044f \u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0442\u0435\u0433\u0430 Effect.Stun, \u0435\u0441\u043b\u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0442\u0435\u0433\u043e\u0432 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0443\u043b\u044f \u2014 \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0432\u0441\u044e AI \u043b\u043e\u0433\u0438\u043a\u0443 \u0443 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430, \u0435\u0441\u043b\u0438 \u043c\u0435\u043d\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e \u043d\u0443\u043b\u044e \u2014 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c. <br \/>  \u0414\u0435\u043b\u043e \u0437\u0430 \u043c\u0430\u043b\u044b\u043c, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u044d\u0444\u0444\u0435\u043a\u0442\u0430 \u043d\u0430 \u0446\u0435\u043b\u044c:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ta\/p_\/8x\/tap_8xramtomyhvha-v7qhvwmcc.png\"><\/div>\n<p>  \u0424\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0438\u0434 \u0441\u043a\u0438\u043b\u043b\u0430:<\/p>\n<div style=\"text-align:center;\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/_p\/ab\/is\/_pabisfxaa5uavm52nf6vj-xpdi.gif\" alt=\"gif\" width=\"640\" height=\"360\"><\/div>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435, Gameplay Ability System \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432. \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0435 \u043c\u044b \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u043c\u0443\u043b\u044c\u0442\u0438\u043f\u043b\u0435\u0435\u0440 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0443\u044e GAS \u0438 \u0442\u0430\u0440\u0433\u0435\u0442\u0438\u043d\u0433.<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/socialquantum\/blog\/505886\/\"> https:\/\/habr.com\/ru\/company\/socialquantum\/blog\/505886\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/company\/socialquantum\/blog\/505886\/\">\u0412 Social Quantum \u0441\u0435\u0439\u0447\u0430\u0441 \u043a\u0438\u043f\u0438\u0442 \u0440\u0430\u0431\u043e\u0442\u0430 \u043d\u0430\u0434 \u043d\u043e\u0432\u044b\u043c\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u043d\u0430 Unreal Engine 4. \u0414\u043b\u044f \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u044d\u0442\u0438\u0445 \u0438\u0433\u0440 \u043c\u044b \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043f\u043b\u0430\u0433\u0438\u043d Gameplay Ability System (\u0434\u0430\u043b\u0435\u0435 GAS). \u041c\u043d\u043e\u0433\u0438\u0435 \u043e \u043d\u0435\u043c \u0441\u043b\u044b\u0448\u0430\u043b\u0438, \u043d\u043e \u0440\u0435\u0434\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u043b\u0438 \u0434\u043b\u044f \u0441\u0432\u043e\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432. \u042d\u0442\u043e\u043c\u0443 \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u0447\u0438\u043d: \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u043e\u0431\u044a\u0435\u043c\u043d\u043e\u0441\u0442\u044c \u0438 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u041d\u0430\u0448\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0440\u0435\u0448\u0438\u043b\u0430 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u0441\u0435\u0440\u0438\u044e \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u043e\u0432, \u0433\u0434\u0435 \u043c\u044b \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c \u043e\u0431 \u043e\u043f\u044b\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u0438 \u0440\u0430\u0437\u0432\u0435\u0435\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u0438\u0444\u044b.<\/p>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u0441\u0430\u043c\u044b\u0435 \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u044b GAS \u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0435\u0435 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043a\u043e\u043f\u043d\u0435\u043c \u0447\u0443\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u00ab\u0434\u0435\u043b\u0430\u0435\u043c \u0437\u0435\u043b\u044c\u0435 \u0434\u043b\u044f \u043f\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f\u00bb.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ic\/ab\/t_\/icabt_kdciv_qb3yt-rxknrsuuc.png\"><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-305448","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/305448","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=305448"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/305448\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=305448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=305448"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=305448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}