ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/MSVC/Daodan_Cheater.c
(Generate patch)

Comparing Daodan/MSVC/Daodan_Cheater.c (file contents):
Revision 567 by gumby, Fri Jun 25 03:52:34 2010 UTC vs.
Revision 569 by gumby, Wed Jul 14 07:35:40 2010 UTC

# Line 94 | Line 94 | uint16_t cheat_oldjet_timer = 20;
94   float cheat_oldheight1 = 45;
95   float cheat_oldheight2 = 135;
96   bool inc_fallingframes = true;
97 <
97 > extern bool patch_bsl;
98   uint8_t ONICALL DDrCheater(uint32_t cheat)
99   {
100          switch (cheat)
# Line 249 | Line 249 | uint8_t ONICALL DDrCheater(uint32_t chea
249                          player->Flags = player->Flags | chr_noncombatant;
250                          return 1;
251                  }
252 +                case cheat_elderrune:
253 +                {
254 +                        if(patch_bsl) {
255 +                                int* Regeneration = &ONgGameState->PlayerCharacter->RegenHax;
256 +                                if(*Regeneration)
257 +                                {
258 +                                        *Regeneration = 0;
259 +                                        return 0;
260 +                                }
261 +                                else
262 +                                {
263 +                                        *Regeneration = 1;
264 +                                        return 1;
265 +                                }
266 +                        }
267 +                        else
268 +                        {
269 +                                return ONrCheater(cheat_elderrune);
270 +                        }
271 +                }
272 +
273                  case cheat_tellmetheversion:
274                          return 1;
275                  case cheat_x:

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)