SRPG Studio

SRPG Studio

Not enough ratings
XCom-like cover system
   
Award
Favorite
Favorited
Unfavorite
RESOURCES: plugin
File Size
Posted
Updated
2.902 KB
12 Oct, 2018 @ 1:46pm
14 Oct, 2018 @ 2:14am
4 Change Notes ( view )

Subscribe to download
XCom-like cover system

Description
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 Comments
capogalassia  [author] 11 Apr, 2020 @ 1:57am 
Actually this one is kinda updated, I'd suggest getting the one here [github.com] from another scripter
DestroyerHive 22 Feb, 2020 @ 3:34pm 
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 22 Feb, 2020 @ 1:15pm 
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 29 Oct, 2018 @ 2:48pm 
Yesss. Plugins like this will make creating SRPG's varied and interesting.
capogalassia  [author] 22 Oct, 2018 @ 12:16pm 
i would if i could sprite ;_;
Qman1230 14 Oct, 2018 @ 12:09am 
Can you update some new material? like charchip or motion, etc.