Author Topic: Is it possible to make a "toy" weapon?  (Read 369 times)

I mean a weapon with no damage. Like practice swords. It looks and acts like the normal weapon but does 0 damage.

I mean a weapon with no damage. Like practice swords. It looks and acts like the normal weapon but does 0 damage.
Yes.

ProjectileDatablock.directDam age=0;

You can use that in console to modify the damage of a projectile. If you're making a weapon, set that variable to 0 on your weapon's projectile.

If you don't know how to use that, you probably won't be able to make a weapon (or modify one), but in console it's used in the following context:
Code: [Select]
GunProjectile.directDamage=0;
« Last Edit: April 05, 2011, 12:10:29 AM by TripleNickels »

I made something like this, except its useful.

Basically, I used one of Space Guy's old script, and edited it. Theres a sword, gun and bow, which when used, don't do anything. However if you add certain events to the brick, you can make the weapons fire projectiles when they are used. Also with this, you can make sounds play, or just have completely random things happen. Its kinda fun. To go with this, I made "Fake" projectiles, which are projectiles that do no damage, simply for looks. Combined together, you can make some crazy stuffs. Eg a gun that when hit by, can deal a certain amount of damage, based on a variable from the player, and the fire-er. (Strength and armor variables?)

Very useful. Not releasing unless Space Guy says I can, and even then, probably not.