'LinKin Posted March 7, 2014 Posted March 7, 2014 Hello, createProjectile() The starting Force.. a float between what? I tested setting it to 1 and then to 900 and it was pretty the same. Even put 0 and it was the same What is it exactly? Thanks.
Dealman Posted March 8, 2014 Posted March 8, 2014 I would assume force only applies to some projectiles, such as grenades and molotovs. Have you tried it with those?
'LinKin Posted March 8, 2014 Author Posted March 8, 2014 Ahhh, no I've not tried but I think you're right! Do you know which is the interval of that number? Maybe 0 < x < 1 ..?
Moderators Citizen Posted March 8, 2014 Moderators Posted March 8, 2014 I would assume force only applies to some projectiles, such as grenades and molotovs. Have you tried it with those? You are totally right: //from CPacketHandler.cpp switch ( weaponType ) { case WEAPONTYPE_GRENADE: case WEAPONTYPE_TEARGAS: case WEAPONTYPE_MOLOTOV: case WEAPONTYPE_REMOTE_SATCHEL_CHARGE: { // Read the force SFloatSync < 7, 17 > projectileForce; if ( !bitStream.Read ( &projectileForce ) ) return; fForce = projectileForce.data.fValue; // Read the velocity if ( !bitStream.Read ( &velocity ) ) return; pvecVelocity = &( velocity.data.vecVelocity ); bCreateProjectile = true; break; } //truncated code } Ahhh, no I've not tried but I think you're right!Do you know which is the interval of that number? Maybe 0 < x < 1 ..? No more like 0 <= x <= 127 if I'm right (2^7 - 1) EDIT: Wiki page updated (hope it won't get reverted for some reason) => createProjectile
'LinKin Posted March 8, 2014 Author Posted March 8, 2014 Thanks. What has updated in the Wiki page? I cannot notice
Moderators Citizen Posted March 9, 2014 Moderators Posted March 9, 2014 Thanks.What has updated in the Wiki page? I cannot notice You can use the diff feature: https://wiki.multitheftauto.com/index.p ... ldid=37750
Moderators Citizen Posted March 9, 2014 Moderators Posted March 9, 2014 Nice nice.Thank you. No problem, thank you for pointing this lack of precision on this argument out.
Einheit-101 Posted December 25, 2014 Posted December 25, 2014 Sorry for digging this out, but I still don't know what force is going to do? I can create a grenade with velocity XYZ and that should be the force. Or is simply VelX, VelY, VelZ multiplied with force? (Like VelX*Force = real velocity?)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now