Jump to content
TeardownMods

2 Screenshots

About This File

WARNING!

This will updated only to fix bugs

strength = 2000	--Strength of shockwave impulse
maxDist = 15	--The maximum distance for bodies to be affected
maxMass = 1000	--The maximum mass for a body to be affected

function init()
    tank = FindVehicle("tank")
	body = FindBody("body")

	reticle1 = LoadSprite("MOD/sprite/reticle1.png")
	reticle2 = LoadSprite("MOD/sprite/reticle2.png")
	reticle3 = LoadSprite("MOD/sprite/reticle3.png")

	ammo = 50
	reach = 500
	reloadTime = 0

	recoil = 150000
	explosionSize = 3

	drawReticle = false
	didImpact = false
	impactPoint = Vec(0,0,0)

	projectileTime = 0.0
	projectileTimeMax = 0.3
	projectilePos = Vec(0,0,0)
	projectileStartPos = Vec(0,0,0)
	projectileHitPos = Vec(0,0,0)

	shootSnd = {}
	for i=0, 3 do
		shootSnd[i] = LoadSound("tools/tankgun"..i..".ogg")
	end
end

in the 13th line of the code you can modify the ammo, +100000 mean infinite ammo

You have to put in the initial carpet C:\Users\MyUserName\Documents\Teardown\mods\MyMap\

or MOD/tank/tank.xml, have fun!, comment for any question, and att the line 18 is the explosion size, you know

Direction.png

  • Like 1

User Feedback

Recommended Comments

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

How to Disable AdBlock - And why you should do it?

I have disabled AdBlocker. Refresh the page.