Battlefield Modding Tutorials BFMODS https://battlefieldmodding.com/ssm/phpBB3/ |
|
Throwing Knives https://battlefieldmodding.com/ssm/phpBB3/viewtopic.php?f=3&t=1279 |
Page 1 of 1 |
Author: | reptromiki [ Sat Mar 26, 2005 2:42 pm ] |
Post subject: | Throwing Knives |
Author: | GForce [ Sun Mar 27, 2005 2:25 pm ] |
Post subject: | |
Try this... Rem *** Throwing Knives *** ObjectTemplate.Active KnifeAllies ObjectTemplate.projectileTemplate myknife rem ***Throw-Knife Projectile Code Start*** ObjectTemplate.Create Projectile myknife ObjectTemplate.Geometry KnifeAllies ObjectTemplate.material 226 ObjectTemplate.material2 200 ObjectTemplate.dieAfterColl 1 ObjectTemplate.hasOnTimeEffect 0 ObjectTemplate.UseMMOnEndEffect 1 ObjectTemplate.hasDynamicShadow 1 ObjectTemplate.setHasMobilePhysics 1 ObjectTemplate.setHasCollisionPhysics 1 ObjectTemplate.setHasResponsePhysics 0 ObjectTemplate.setHasPointPhysics 1 ObjectTemplate.hasCollisionEffect 0 ObjectTemplate.invisibleAtEndEffect 0 rem ***Throw-Knife Projectile Code End*** ![]() |
Author: | Harry [ Sun Mar 27, 2005 2:43 pm ] |
Post subject: | |
And try this in addition to the ObjectTemplate.Active KnifeAllies (...) ObjectTemplate.rotationalSpeed 16/0/0 Should give it a nice spin. Add an gravity modifier so it falls, like this: ObjectTemplate.Create Projectile myknife ObjectTemplate.gravityModifier 0.2 (...) But since a new projectile is created, i doubt if itll work as a SSM. (oops, thats not what its all about, oh well ![]() (oh and i thin you can set the dynamicshadows to 0, since the knife doest have an shadowmodel, afaik. It might cause extra lag) |
Author: | GForce [ Sun Mar 27, 2005 2:49 pm ] |
Post subject: | |
I just tried it and as suspected it crashes the client... ![]() |
Author: | Harry [ Sun Mar 27, 2005 3:51 pm ] |
Post subject: | |
Author: | reptromiki [ Sun Mar 27, 2005 3:54 pm ] |
Post subject: | |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |