当前位置: 首页 > news >正文

给GE添加自定义算法-继承GameplayModMagnitudeCalculation

继承该类

virtual float CalculateBaseMagnitude_Implementation(const FGameplayEffectSpec& Spec) const override;
example:
float UMMC_MaxHealth::CalculateBaseMagnitude_Implementation(const FGameplayEffectSpec& Spec) const
{
// Gather tags from source and target
const FGameplayTagContainer* SourceTags = Spec.CapturedSourceTags.GetAggregatedTags();
const FGameplayTagContainer* TargetTags = Spec.CapturedTargetTags.GetAggregatedTags();

FAggregatorEvaluateParameters EvaluationParameters;
EvaluationParameters.SourceTags = SourceTags;
EvaluationParameters.TargetTags = TargetTags;

float Vigor = 0.f;
GetCapturedAttributeMagnitude(VigorDef, Spec, EvaluationParameters, Vigor);
Vigor = FMath::Max<float>(Vigor, 0.f);

ICombatInterface* CombatInterface = Cast<ICombatInterface>(Spec.GetContext().GetSourceObject());
const int32 PlayerLevel = CombatInterface->GetPlayerLevel();

return 80.f + 2.5f * Vigor + 10.f * PlayerLevel;
}
http://www.sczhlp.com/news/66135/

相关文章:

  • Rust中使用RocksDB索引进行高效范围查询的实践指南
  • 服装外贸网站建设建设公司是什么意思
  • 申办网站流程太原网站建设列表网
  • 美发网站模板wordpress影视主题下载失败
  • 广州网站定制开发设计现在的网站开发都用什么开发
  • 福田做网站需要多少钱年度关键词有哪些
  • 泰康人寿保险官方网站如何用织梦仿制网站
  • 网站制作案例医疗网站项目策划
  • 四川汉舟电力建设有限公司网站店铺设计效果图软件
  • 门头沟富阳网站建设wordpress签到插件
  • 【SHADER系列】(三)体积光
  • 用c++创建GameplayTags-UGameplayTagsManager::Get().AddNativeGameplayTag
  • GAS_Aura- Attribute Info Data Asset
  • 网站后台数据库丢失图片网站 代码
  • 如需郑州网站建设简单的个人网站下载
  • 公司网站维护建设费入什么科目赣州市赣楼网络科技有限公司
  • 软文写作发布seo学徒招聘
  • GAS_Aura-Native Gameplay Tags
  • 使用资产管理类管理GameplayTags的初始化-Asset Manager
  • 【日记】2025-9-3
  • 网站信息内容建设自查报告哪些网站有二维码
  • wap网站psd企业网站源码 一品资源网
  • 原江苏省建设厅网站百度指数的数据来源
  • 手机网站快速排名 软件wordpress 分享 插件
  • 建设学校网站百度统计 wordpress 插件
  • 网站的建设服务中心郑州高端设计工作室
  • 做vip的网站好做吗临沂品牌网站建设公司
  • 开发网站做什么奇零seo赚钱培训
  • 扩展欧几里得算法的推导与证明
  • 智简魔方魔方云手动下载镜像