SRPG Studio

SRPG Studio

评价数不足
XCom-like cover system
   
奖励
收藏
已收藏
取消收藏
RESOURCES: plugin
文件大小
发表于
更新日期
2.902 KB
2018 年 10 月 12 日 下午 1:46
2018 年 10 月 14 日 上午 2:14
4 项改动说明 ( 查看 )

订阅以下载
XCom-like cover system

描述
Adds a cover system like the ones in the XCom reboot

When a unit stands near a tile that offers dodge bonuses, it will "take cover" behind the tile.
It will get those dodge bonuses as long as the cover stands between the attacker and the defender.

Known issues:
-this only works for avoid, i will update it in the future to give defensive bonuses too
-there's no AI change, so the enemy units won't be able to fully take advantage of the system. they seem to understand where they get more hit and avoid tho. if anyone could help with this, it would be welcome! I actually don't know javascript and write scripts by kinda copying what's already in, so no guarantees ;)
-if the attacker stands on the cover, the defender will still take the avoid bonus. cover is supposed to be impassable like in the xcom games, but i may try fix it in the future



Small update:
now you can "peek from cover" like in the xcom games:
if you are behind cover and you could get a line of shot by "peeking" from the cover, you'll negate the avoid bonuses!
6 条留言
capogalassia  [作者] 2020 年 4 月 11 日 上午 1:57 
Actually this one is kinda updated, I'd suggest getting the one here [github.com] from another scripter
DestroyerHive 2020 年 2 月 22 日 下午 3:34 
Ah nevermind - it's only an issue at the beginning of the game, of you're positioned behind an enemy. If you want my current sprites for gun-wielding units (includes rifle, pistol, grenade and tripod-mounted gun animations) send me a message :)
DestroyerHive 2020 年 2 月 22 日 下午 1:15 
Awesome script - it will be very useful in Warhammer 40K game I'm making! One question: The game keeps crashing due to the plugin, saying "Line 49: Null is null or not an object". Do you know what might be causing this?
BlindAxis 2018 年 10 月 29 日 下午 2:48 
Yesss. Plugins like this will make creating SRPG's varied and interesting.
capogalassia  [作者] 2018 年 10 月 22 日 下午 12:16 
i would if i could sprite ;_;
Qman1230 2018 年 10 月 14 日 上午 12:09 
Can you update some new material? like charchip or motion, etc.