08-30-2013, 01:00 AM
Bows are starting to work. They already shoot arrows, but the arrows' physics are still bugged. And the bow doesn't put the right amount of speed into the arrows.
Random Chitchat 2012-2016
|
08-30-2013, 01:00 AM
Bows are starting to work. They already shoot arrows, but the arrows' physics are still bugged. And the bow doesn't put the right amount of speed into the arrows.
Thanks given by: NiLSPACE
08-30-2013, 01:28 AM
Great.
08-30-2013, 01:38 AM
But I keep finding these bugs that are distracting me from doing something useful. Currently, the cPlayer sometimes doesn't tick, because the clienthandle still thinks it's downloading the initial terrain, the client didn't confirm the initial position. I don't wanna fix such bugs on a feature branch
08-30-2013, 08:01 PM
(08-30-2013, 01:38 AM)xoft Wrote: But I keep finding these bugs that are distracting me from doing something useful. Currently, the cPlayer sometimes doesn't tick, because the clienthandle still thinks it's downloading the initial terrain, the client didn't confirm the initial position. I don't wanna fix such bugs on a feature branch The client didn't confirm it's position‽ I thought it was always supposed to do that. Make a long timeout and kick the client
08-30-2013, 08:13 PM
I walked across several chunks and still the client didn't send the confirmation (or maybe it did send the confirmation before I even sent the initial position, dunno). The point is, I need to record the comm with ProtoProxy and adjust the code to behave well. I've already started work on ProtoProxy and the vanilla log.
08-30-2013, 10:36 PM
I've merged the Projectiles branch into master, because it contained several bugfixes and changes in the overall approach, it would be difficult to keep those apart for longer time. I will continue to develop projectiles on the separate branch again, just wanted to update the master.
So right now you can play with half-functional bows, shoot harmless arrows around etc. Also the Debuggers plugin, as usual, has some API example on creating projectiles in a plugin.
08-30-2013, 10:48 PM
is there projectile damage. Can you kill with arrows?
08-30-2013, 11:08 PM
He said they were harmless.
08-31-2013, 03:50 AM
Code to make enderpearl work:
cThrownEnderPearlEntity::cThrownEnderPearlEntity(cEntity * a_Creator, double a_X, double a_Y, double a_Z, const Vector3d & a_Speed) : super(pkEnderPearl, a_Creator, a_X, a_Y, a_Z, 0.25, 0.25) { m_Creator = a_Creator; SetSpeed(a_Speed); } void cThrownEnderPearlEntity::OnHitSolidBlock(int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace) { m_Creator->TeleportToCoords(a_BlockX + 0.5, a_BlockY + 1, a_BlockZ + 0.5); m_Creator->TakeDamage(dtSuffocating, NULL, 5, 0); Destroy(); } Thanks given by: xoft
I think we'll provide a new DamageType value for enderpearls. Also, setting the creator in the constructor is unneccessary, the superclass should take care of that.
I accidentally committed a few AnvilStats upgrades onto the Projectiles branch and before I noticed, I pushed it. So I had to re-merge Projectiles into the master yet again. So enjoy the throwables in the master |
« Next Oldest | Next Newest »
|