SpawnUnits: Somewhat repeptitive, constructor1, tank, etc. Text: Converts into something else, like a tank, or building NOTE: Traileffect stems from all-units.template, the custom effect we added earlier.Ĭonstruction Unit: make a txt file, then click the title and change it into an ini file.ĬonvertTo: tank (putting in constructor1 will turn this into itself, but it will take your money! Also gives full hp and stats) And if this turret shoots that unit with that tag, adding a value multiplier of 1=100% damage, aka: normal damage. Add any tag you want to a unit, any word. NOTE: mutator1/2/3/4/etc_ifUnitWithTags or ifUnitWithoutTags: medium, small, tank, etc. Elsewise look at the already present unit inis and data for pre-made effects. Custom smoke will waft from the barrel upon firing. Take a png, add some data, mess with the alll-units.template file, and walla. NOTE: Firstly, I did no custom explode effects, but I couldve, doing CUSTOM:smokesmple*1 is done in the same way I did the traileffect. This is also fairly advanced, so keep it singlle frame. NOTE:frame is the amount of frames, take a png with three bullet models, single frame will render alll of them, frame 2 will render the second and not the first. directDamage will only really function if you dont use targetGround areaRadius says how large the damage area will be. GroundSpread is what indicates the width of the rng. make targetGround: false in order to remove rng. NOTE: This makes it target the ground around the enemy unit, then it rolls a die, fires in area of five around the enemy. NOTE: Will push enemy units with this much force, enemy MASS: willl play a role. Image: ROOT:\sprites\tankmachinegunshot.png NOTE:how long the bullet will last before it reaches target. NOTE:Want your explosion to hit air and ground units, like flak? Use this. NOTE:How much energy this costs to fire once. This is useful for making autospawners and map renderers, etc. NOTE:Special, making this false willl prevent it from shooting. NOTE:Self explanatory, you can only target units with THESE tags limitingRange limits this turret to 40 instead of what it says far above.ĬanOnlyAttackUnitsWithTags: small, medium Basically, delay is how long it takes to fire another shot. NOTE:These hijack the main turret fire delay and range. NOTE:Put the projectile name you want here. You can remove limitingAngle entirely so turret will have full rotation. NOTE:Where it shoots from, look at the png and measure the pixels from the center to decide where this should be. Refer to the main body png and place the turret appropriately Minimum range makes it so this turret cant shoot a unit that is closer than the value. NOTE: limitingMinRange is the minimum range, got a really big gun? Kinda unrealistic to shoot a target that is meleeing you. ShowActionsWithMixedSelectionIfOtherUnitsHaveTag: true With that finished, copy and paste the following code into your tank.ini
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |