#include "Awards.h"
#include "Game.h"
#include "Dialog.h"
+#include "Utils/Folders.h"
extern float multiplier;
extern Terrain terrain;
Person::Person() :
whichpatchx(0),
whichpatchz(0),
- animCurrent(0),
- animTarget(0),
+ animCurrent(bounceidleanim),
+ animTarget(bounceidleanim),
frameCurrent(0),
- frameTarget(0),
+ frameTarget(1),
oldanimCurrent(0),
oldanimTarget(0),
oldframeCurrent(0),
deathbleeding(0),
tempdeltav(0),
- damagetolerance(0),
+ damagetolerance(200),
damage(0),
permanentdamage(0),
superpermanentdamage(0),
lastcollide(0),
dead(0),
- jumppower(0),
+ jumppower(5),
onground(false),
wentforweapon(0),
turnspeed(0),
- aitype(0),
+ aitype(passivetype),
aiupdatedelay(0),
losupdatedelay(0),
ally(0),
collide(0),
- collided(0),
+ collided(-10),
avoidcollided(0),
loaded(false),
whichdirection(false),
tailmorphness(0),
targetlefthandmorphness(0),
targetrighthandmorphness(0),
- targetheadmorphness(0),
+ targetheadmorphness(1),
targetchestmorphness(0),
targettailmorphness(0),
lefthandmorphstart(0), lefthandmorphend(0),
num_weapons(0),
weaponactive(-1),
- weaponstuck(0),
+ weaponstuck(-1),
weaponstuckwhere(0),
numwaypoints(0),
clothes[k][templength] = '\0';
funpackf(tfile, "Bf Bf Bf", &clothestintr[k], &clothestintg[k], &clothestintb[k]);
}
+
+ loaded = true;
+
+ if (scale < 0) {
+ if (creature == wolftype) {
+ scale = .23;
+ damagetolerance = 300;
+ } else {
+ scale = .2;
+ }
+ }
+
+ oldcoords = coords;
+ realoldcoords = coords;
}
/* EFFECT
//Load Image
ImageRec texture;
- bool opened = load_image(fileName, texture);
+ bool opened = load_image(Folders::getResourcePath(fileName).c_str(), texture);
float alphanum;
//Is it valid?