Gamestudio Links
Zorro Links
Newest Posts
nba2king Latest Roster Update Breakdown
by joenxxx. 10/14/25 06:06
Help!
by VoroneTZ. 10/14/25 05:04
Zorro 2.70
by jcl. 10/13/25 09:01
ZorroGPT
by TipmyPip. 10/12/25 13:58
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 10/11/25 18:45
Reality Check results on my strategy
by dBc. 10/11/25 06:15
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (Grant, joenxxx), 9,921 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
joenxxx, Jota, krishna, DrissB, James168
19170 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 3 1 2 3
Re: Gamestudio 8.40.1 public beta [Re: Dico] #406875
08/31/12 16:36
08/31/12 16:36
Joined: Feb 2012
Posts: 371
Dico Offline
Senior Member
Dico  Offline
Senior Member

Joined: Feb 2012
Posts: 371
this my changed code for gravity

Code:
function gravity_ent(ENTITY* ent)
{

	result10 = c_trace(ent.x,vector(ent.x,ent.y,ent.z - 4000),IGNORE_ME|IGNORE_PASSABLE|USE_BOX);
	if(ent == player)
	{
		if(active_gravity == 1)
		{
			if(jump == 0)
			{
				ent.z_dist = result - 3;
				if (ent.z_dist > 1)
				{
					ent.force_z -= 3 * time_step;
					ent.force_z = maxv(-30,ent.force_z);
				}
				ent.velocity_z += (time_step * ent.force_z) - (minv(time_step*0.7,1) * ent.velocity_z);
				ent.move_z = ent.velocity_z * time_step;
				if (ent.z_dist < 0) { ent.move_z = clamp(-ent.z_dist,-5,0.1); ent.velocity_z = 0; ent.force_z = 0; }
				c_move (ent,vector(0,0,ent.move_z),nullvector,IGNORE_PASSABLE | GLIDE);
			}
		}
	}
}


Re: Gamestudio 8.40.1 public beta [Re: Dico] #406876
08/31/12 16:37
08/31/12 16:37
Joined: Feb 2012
Posts: 371
Dico Offline
Senior Member
Dico  Offline
Senior Member

Joined: Feb 2012
Posts: 371
when i remove USE_BOX the game be good

Re: Gamestudio 8.40.1 public beta [Re: Dico] #406877
08/31/12 16:40
08/31/12 16:40
Joined: Feb 2012
Posts: 371
Dico Offline
Senior Member
Dico  Offline
Senior Member

Joined: Feb 2012
Posts: 371
there is also probleme in shadow_stencil 2

the shadow has flag znear

Re: Gamestudio 8.40.1 public beta [Re: Dico] #406879
08/31/12 17:05
08/31/12 17:05
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
in some cases decals also seemed to have znear, but don't remember exactly when, I realised it before I went to holiday... (I'll try to make tests again)


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: Gamestudio 8.40.1 public beta [Re: sivan] #406894
09/01/12 01:04
09/01/12 01:04
Joined: Feb 2012
Posts: 371
Dico Offline
Senior Member
Dico  Offline
Senior Member

Joined: Feb 2012
Posts: 371
okey

Re: Gamestudio 8.40.1 public beta [Re: Dico] #406965
09/03/12 12:37
09/03/12 12:37
Joined: Jul 2000
Posts: 28,028
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 28,028
Frankfurt
Sivan: Decal shadows were indeed wrong in your example, but this was related to the animation problem. In the fixed version, decal shadows look normal.

We'll upload a new version, 8.40.3, with some small fixes today.

Page 3 of 3 1 2 3

Moderated by  Matt_Coles 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1