本插件是由一位俄罗斯程序员编写的RecoilSystem插件所启发的,是原始插件的完全重写。 This plugin is inspired by RecoilSystem which was wrote by a Russian Programmer, and is a complete rewrite of the original plugin.
Crystal's Recoil 允许你为自己的射击游戏添加模板化的后坐力效果,并且可以使用一个GUI界面来调整后坐力模板和其他细节参数。 Crystal's Recoil allows you to add templated recoil effects to your shooting game, and you can use a GUI interface to adjust the recoil template and other detailed parameters.
Plugins
文件夹中 | Put the plugin file into the Plugins
folder of your projectICRRecoilInterface
(必须在C++内继承) | Inherit the interface ICRRecoilInterface
for your player Pawn class (must be done in C++)UCRRecoilComponent
| Add the component UCRRecoilComponent
for your player Pawn classICRRecoilInterface::GetRecoilComponent
和 GetTargetController
| Implement the interface functions ICRRecoilInterface::GetRecoilComponent
and GetTargetController
in your player Pawn classUCRRecoilComponent::SetRecoilPattern
为玩家Pawn设置后坐力模板 | Call UCRRecoilComponent::SetRecoilPattern
to set the recoil pattern for the player Pawn at the right timeICRRecoilInterface::StartShooting
和 StopShooting
来开始和停止射击(这两个函数是为了决定何时开始后坐力恢复) | Call ICRRecoilInterface::StartShooting
and StopShooting
at the right time to start and stop shooting (these two functions are to determine when to start recoil recovery)StartShooting
之后,在每一枪射击后调用 ICRRecoilInterface::ApplyShot
来应用后坐力 | After calling StartShooting
, call ICRRecoilInterface::ApplyShot
after each shot to apply recoilRecoilPattern
| Create an DataAsset RecoilPattern
插件附带一个SpreadRecoilComponent,它可以用于在射击时添加随机的扩散效果。 | The plugin comes with a SpreadRecoilComponent, which can be used to add random spread effects when shooting.
本插件使用MIT许可证 | This plugin is licensed under the MIT License