diff --git a/source/src/clientextras.cpp b/source/src/clientextras.cpp index 607fe640..8b14ed77 100644 --- a/source/src/clientextras.cpp +++ b/source/src/clientextras.cpp @@ -89,6 +89,7 @@ void spawn_dummy() dynent *d = newdynent(); players.add(d); d->o = player1->o; + strcpy(d->team, player1->team); d->gunselect = player1->gunselect; d->monsterstate = M_NONE; strcpy(d->name, "dummy"); diff --git a/source/src/rendermd3.cpp b/source/src/rendermd3.cpp index 9e89ef6e..c8dadc33 100644 --- a/source/src/rendermd3.cpp +++ b/source/src/rendermd3.cpp @@ -413,10 +413,10 @@ void rotatevec(vec &point, vec &rot) }; VAR(swayspeeddiv, 1, 125, 1000); -VAR(swaymovediv, 1, 100, 1000); +VAR(swaymovediv, 1, 200, 1000); VAR(swayupspeeddiv, 1, 125, 1000); -VAR(swayupmovediv, 1, 100, 1000); +VAR(swayupmovediv, 1, 200, 1000); VAR(x, 0, 0, 1000); VAR(y, 0, 0, 1000); @@ -477,7 +477,7 @@ void rendermd3gun() //conoutf("%i up %i", swayspeed*1000, swayupspeed*1000); #define g0(x) ((x) < 0.0f ? -(x) : (x)) - float plspeed = max(0.1f, min(1.0f, sqrt(g0(player1->vel.x*player1->vel.x) + g0(player1->vel.y*player1->vel.y)))); + float plspeed = min(1.0f, sqrt(g0(player1->vel.x*player1->vel.x) + g0(player1->vel.y*player1->vel.y))); // if(plspeed<0.0f) plspeed = -plspeed; swayspeed *= plspeed/2; diff --git a/source/src/world.cpp b/source/src/world.cpp index 4f8e7895..7ec6d33a 100644 --- a/source/src/world.cpp +++ b/source/src/world.cpp @@ -216,12 +216,21 @@ entity *newentity(int x, int y, int z, char *what, int v1, int v2, int v3, int v e.attr1 = (int)player1->yaw; break; }; - printf("attrs: %i %i %i %i\n", e.attr1, e.attr2, e.attr3, e.attr4); + printf("attrs: %i %i %i %i\n", e.type, e.attr1, e.attr2, e.attr3, e.attr4); addmsg(1, 10, SV_EDITENT, ents.length(), type, e.x, e.y, e.z, e.attr1, e.attr2, e.attr3, e.attr4); ents.add(*((entity *)&e)); // unsafe! if(type==LIGHT) calclight(); return &ents.last(); }; + +void mdlcheck() +{ + loopv(ents) + { + entity &e = ents[i]; + printf("%i %i %i %i %i\n", e.type, e.attr1, e.attr2, e.attr3, e.attr4); + } +}; COMMAND(mdlcheck, ARG_NONE); void clearents(char *name) { diff --git a/source/src/worldio.cpp b/source/src/worldio.cpp index f88a33ab..debfda43 100644 --- a/source/src/worldio.cpp +++ b/source/src/worldio.cpp @@ -135,7 +135,7 @@ void save_world(char *mname) backup(cgzname, bakname); gzFile f = gzopen(cgzname, "wb9"); if(!f) { conoutf("could not write map to %s", (int)cgzname); return; }; - hdr.version = 5; //MAPVERSION; + hdr.version = MAPVERSION; hdr.numents = 0; loopv(ents) if(ents[i].type!=NOTUSED) hdr.numents++; header tmp = hdr;