Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upSuddenly reviving corpses #8371
Conversation
HuXTUS
added some commits
Jul 29, 2014
HuXTUS
changed the title
[WIP] Suddenly reviving corpses
[CR] Suddenly reviving corpses
Jul 29, 2014
This comment has been minimized.
This comment has been minimized.
|
Looks like this makes placed-corpses reanimate as generic zeds. Since there are a fair amount of special corpses (scientists/soldiers), they should probably reanimate as such. (And with this in mind, I'd either remove the chance to have pre-raised zeds around the map_special, or remove/reduce the nethercritters.) The difficulty-seekers'll love this. |
This comment has been minimized.
This comment has been minimized.
|
I don't touched special corpses. The code block that generated this corpses leave untouched.
Also zombies you killed (and not pulped) just have chance to gain flag REVIVE_SPECIAL. Nothing more. |
kevingranade
reviewed
Jul 30, 2014
|
|
||
| point p = g->find_item(this); | ||
|
|
||
| const int distance = sqrt((p.x - g->u.posx) * (p.x - g->u.posx) + (p.y - g->u.posy) * (p.y - g->u.posy)); |
This comment has been minimized.
This comment has been minimized.
kevingranade
Jul 30, 2014
Member
Use the rl_dist() helper here. The way we handle distance is set in an option, so to be consistent we need to always use rl_dist().
This comment has been minimized.
This comment has been minimized.
kevingranade
reviewed
Jul 30, 2014
| @@ -1675,6 +1677,21 @@ bool item::ready_to_revive() | |||
| int rez_factor = 48 - age_in_hours; | |||
| if (age_in_hours > 6 && (rez_factor <= 0 || one_in(rez_factor))) | |||
| { | |||
| const bool isReviveSpecial = has_flag("REVIVE_SPECIAL"); | |||
This comment has been minimized.
This comment has been minimized.
kevingranade
Jul 30, 2014
Member
A comment here would be nice.
// If we're a special revival zombie, wait to get up until the player is nearby.
HuXTUS commentedJul 29, 2014
Now corpses can make you a surprise. No, they are not any smarter and not ambushes. They just can lie idle, and wakes up when you will Wake them with his presence. As in horror movies when the corpse suddenly grabs your leg.
This applies to zombies killed by you, and some corpses generated by game.
This feature increases suspense and horrify.