Worked on a new class of weapon, thrown objects. This will be expanded later for molotovs, and other explosives. They collide with building walls, and require LOS to deal damage to enemies within the area. Enemies protected by walls won't be hit.
The camera shake is increased a good bit when the explosion happens near to the character, as opposed to further away.
There is a max range the grenade can go. The target will clamp to that area if the mouse is moved outside of those bounds.
I do have code in place to scale the damage based on proximity to the center of the blast. I'm not sure if it's worth using right now as the area of damage on this grenade is quite small. Perhaps I'll use it on larger ones, though.
3 окт 2024