mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-15 17:44:25 +02:00
throwing some of pieces of exploded mutant into Lara, fix additive sprites
This commit is contained in:
@@ -1351,6 +1351,9 @@ struct Controller {
|
|||||||
|
|
||||||
updateJoints();
|
updateJoints();
|
||||||
|
|
||||||
|
int towardPart = rand() % model->mCount;
|
||||||
|
vec3 laraPos = game->getLara(pos)->pos;
|
||||||
|
|
||||||
int roomIndex = getRoomIndex();
|
int roomIndex = getRoomIndex();
|
||||||
for (int i = 0; i < model->mCount; i++) {
|
for (int i = 0; i < model->mCount; i++) {
|
||||||
if (!(mask & (1 << i)))
|
if (!(mask & (1 << i)))
|
||||||
@@ -1359,6 +1362,10 @@ struct Controller {
|
|||||||
float angle = randf() * PI * 2.0f;
|
float angle = randf() * PI * 2.0f;
|
||||||
vec2 speed = vec2(randf(), -randf()) * (getEntity().type == TR::Entity::ENEMY_GIANT_MUTANT ? 256.0f : 128.0f);
|
vec2 speed = vec2(randf(), -randf()) * (getEntity().type == TR::Entity::ENEMY_GIANT_MUTANT ? 256.0f : 128.0f);
|
||||||
|
|
||||||
|
if ((rand() % 4) == 0) {
|
||||||
|
angle = (laraPos - joints[i].pos).angleY();
|
||||||
|
}
|
||||||
|
|
||||||
ExplodePart &part = explodeParts[i];
|
ExplodePart &part = explodeParts[i];
|
||||||
part.basis = joints[i];
|
part.basis = joints[i];
|
||||||
part.basis.w = 1.0f;
|
part.basis.w = 1.0f;
|
||||||
|
@@ -511,6 +511,10 @@ struct Level : IGame {
|
|||||||
Core::lightColor[3] = vec4(0, 0, 0, 1);
|
Core::lightColor[3] = vec4(0, 0, 0, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (type == Shader::SPRITE) {
|
||||||
|
alphaTest = true;
|
||||||
|
}
|
||||||
|
|
||||||
setShader(Core::pass, type, room.flags.water, alphaTest);
|
setShader(Core::pass, type, room.flags.water, alphaTest);
|
||||||
|
|
||||||
if (room.flags.water) {
|
if (room.flags.water) {
|
||||||
|
Reference in New Issue
Block a user