Blockland Forums > Modification Help
[TIP] Easy way to make datablock duplicates
Pages: (1/1)
soba:
I noticed barely anybody uses this, if you want to make, say, a projectile, you don't need to copy every single value of the gun projectile and slowly modify it, it discourages a lot of people from finishing the job
use this,
datablock ProjectileData(MyProjectile : GunProjectile)
{
uiname = "My Projectile";
};
what this does is create an exact duplicate of the gun projectile, with the damage, variables and everything, this makes it easy to, say, create a new projectile datablock that works exactly like the gun projectile, only does more damage and has a different shape
datablock ProjectileData(MyProjectile : GunProjectile)
{
uiname = "My Projectile";
shapeFile = "./MyProjectile.dts";
directDamage = 1000000000000;
};
when you enter the new variable values, it overwrites the old (doesen't cause any problems tho)
can be done with vehicles too, like so
datablock WheeledVehicleData(MyVehicle : JeepVehicle)
{
uiname = "My New Jeep";
};
Upon creating this topic, I took into account that there is indeed another post on the same subject, but isn't noticed enough
jes00:
Nice topic, it's helpful.
What if you want your weapon/item/whatever to have the exact same projectile/whatever as a default weapon/whatever?
soba:
--- Quote from: jes00 on December 25, 2011, 01:10:11 PM ---Nice topic, it's helpful.
What if you want your weapon/item/whatever to have the exact same projectile/whatever as a default weapon/whatever?
--- End quote ---
What do you mean?
projectile = GunProjectile;?
(use ForceRequiredAdd-on with this incase the projectile is loaded before your weapon)
jes00:
--- Quote from: soba on December 25, 2011, 01:21:33 PM ---What do you mean?
projectile = GunProjectile;?
(use ForceRequiredAdd-on with this incase the projectile is loaded before your weapon)
--- End quote ---
Never mind
Pages: (1/1)