A challenge... Side scroller platform game in 1942

Ask questions, discuss ideas, get answers
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: A challenge... Side scroller platform game in 1942

Post by Vilespring »

YOU CAN HAVE IT :D

Code: Select all


rem *** ShermanScroll ***
ObjectTemplate.create PlayerControlObject ShermanScroll
ObjectTemplate.NameTagOffset 0/-0.3/0
ObjectTemplate.setNetworkableInfo ShermanBodyInfo
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.cullRadiusScale 5
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.explosionRadius 8
ObjectTemplate.explosionDamage 5
ObjectTemplate.exitTimer 1
ObjectTemplate.drag 2
ObjectTemplate.mass 25000
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.hasArmor 1
ObjectTemplate.hitpoints 100
ObjectTemplate.maxhitpoints 100
ObjectTemplate.material 50
ObjectTemplate.speedMod 1
ObjectTemplate.criticalDamage 12
ObjectTemplate.hpLostWhileCriticalDamage 1.5
ObjectTemplate.explosionForceMod 13
ObjectTemplate.hpLostWhileUpSideDown 10
ObjectTemplate.hpLostWhileDamageFromWater 10
ObjectTemplate.timetoliveafterdeath 60
ObjectTemplate.fadeAtTimeToLiveAfterDeath 0
ObjectTemplate.addArmorEffect 50 e_PanzDamage 0/0.9/-1.8
ObjectTemplate.addArmorEffect 12 e_PanzFire 0/1.2/-1.4
ObjectTemplate.addArmorEffect 0 e_ExplGas 0/0/0
ObjectTemplate.addArmorEffect 0 e_scrapmetal 0/0/0
ObjectTemplate.addArmorEffect 0 e_scrapmetalsmoke 0/0/0
ObjectTemplate.addArmorEffect -1 WaterWaterExplosion 0/0/0
ObjectTemplate.damageFromWater 1
ObjectTemplate.aiTemplate Sherman
rem -------------------------------------
ObjectTemplate.addTemplate lodShermanScroll
rem -------------------------------------
ObjectTemplate.setSoldierExitLocation -2/0.5/0 0/0/0
ObjectTemplate.GUIIndex 25
ObjectTemplate.setVehicleIcon "Vehicle/Icon_sherman.tga"
ObjectTemplate.setVehicleIconPos 54/103
ObjectTemplate.setNumberOfWeaponIcons 2
ObjectTemplate.setPrimaryAmmoIcon "Ammo/Icon_cannon.tga"
ObjectTemplate.setPrimaryAmmoBar ABAmmoBarReloadBar
ObjectTemplate.setSecondaryAmmoIcon "Ammo/Icon_bullet.tga"
ObjectTemplate.setSecondaryAmmoBar ABAmmoBarHeatBar
ObjectTemplate.setHasTurretIcon 1
ObjectTemplate.setCrossHairType CHTCrossHair
ObjectTemplate.setVehicleCategory VCLand
ObjectTemplate.setVehicleType  VTLightTank
ObjectTemplate.setToolTipType  TTLightTank
ObjectTemplate.setMinimapIcon "Minimap/minimap_icon_tank_16x16.tga"
ObjectTemplate.hasRestrictedExit 1


rem *** lodShermanScroll ***
ObjectTemplate.create LodObject lodShermanScroll
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate ShermanScrollComplex
ObjectTemplate.addTemplate ShermanSimple
ObjectTemplate.addTemplate ShermanWreck
rem -------------------------------------
ObjectTemplate.lodSelector ShermanLodSelector


rem *** ShermanScrollComplex ***
ObjectTemplate.create Bundle ShermanScrollComplex
ObjectTemplate.geometry Sherman_Hull_M1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate shermanEntry
ObjectTemplate.setPosition 0/0/1.2
ObjectTemplate.addTemplate shermanEntry
ObjectTemplate.setPosition 0/0/-1.2
ObjectTemplate.addTemplate ShermanScrollEngine
ObjectTemplate.addTemplate ShermanScrollTower
ObjectTemplate.setPosition 0/-0.8/0
ObjectTemplate.addTemplate Sherman_Hull_Hatch
ObjectTemplate.setPosition -0.819/0.95/1.22
ObjectTemplate.addTemplate ShermanCamera
ObjectTemplate.setPosition 16/2/0
Objecttemplate.setrotation -90/0/0
rem -------------------------------------


rem *** ShermanScrollTower ***
ObjectTemplate.create RotationalBundle ShermanScrollTower
ObjectTemplate.setNetworkableInfo ShermanTurretInfo
ObjectTemplate.setAttachToListener 1
ObjectTemplate.loadSoundScript Sounds/ShermanTower.ssc
ObjectTemplate.geometry Sherman_Tow_M1
ObjectTemplate.hasCollisionPhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate ShermanScrollGunBase
ObjectTemplate.setPosition 0/1.95/0.77
ObjectTemplate.addTemplate ShermanScrollBrowning
ObjectTemplate.setPosition 0.502/2.482/-0.198
rem -------------------------------------
ObjectTemplate.setMaxSpeed 35/25/0
ObjectTemplate.setAcceleration 1000/0/0


rem *** ShermanScrollGunBase ***
ObjectTemplate.create RotationalBundle ShermanScrollGunBase
ObjectTemplate.setNetworkableInfo ShermanGunInfo
ObjectTemplate.setAttachToListener 1
ObjectTemplate.loadSoundScript Sounds/ShermanGunBase.ssc
rem -------------------------------------
ObjectTemplate.addTemplate ShermanCockpitExternal
ObjectTemplate.addTemplate ShermanGunBarrel
rem ObjectTemplate.addTemplate ShermanCamera
rem  ObjectTemplate.setPosition -0.304/0/0.06
rem -------------------------------------
ObjectTemplate.setMinRotation 0/-20/0
ObjectTemplate.setMaxRotation 0/5/0
ObjectTemplate.setMaxSpeed 20/15/0
ObjectTemplate.setAcceleration 0/-1000/0
ObjectTemplate.setInputToPitch c_PIThrottle


rem *** ShermanScrollBrowning ***
ObjectTemplate.create RotationalBundle ShermanScrollBrowning
ObjectTemplate.setNetworkableInfo ShermanTurretInfo
ObjectTemplate.loadSoundScript Sounds/shermanTurret.ssc
ObjectTemplate.geometry sherman_Mgun_con_m1
rem -------------------------------------
ObjectTemplate.addTemplate ShermanScrollBrowning_console
ObjectTemplate.setPosition 0/0.114/-0.388
ObjectTemplate.setRotation 180/0/0
rem -------------------------------------
ObjectTemplate.setMaxSpeed 90/0/0
ObjectTemplate.setAcceleration 5000/0/0


rem *** ShermanScrollBrowning_console ***
ObjectTemplate.create RotationalBundle ShermanScrollBrowning_console
ObjectTemplate.setNetworkableInfo ShermanGunInfo
ObjectTemplate.geometry Sherman_MGun_mount_M1
rem -------------------------------------
ObjectTemplate.addTemplate browningsidescroll
ObjectTemplate.setPosition 0/0/-0.349
ObjectTemplate.setRotation 180/0/0
rem -------------------------------------
ObjectTemplate.setMinRotation 0/-15/0
ObjectTemplate.setMaxRotation 0/180/0
ObjectTemplate.setMaxSpeed 0/15/0
ObjectTemplate.setAcceleration 0/-5000/0
ObjectTemplate.setInputToPitch c_PIPitch


ObjectTemplate.create FireArms Browningsidescroll
ObjectTemplate.setNetworkableInfo Vehicle_Browning_Info
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.geometry RiBro_Body_m1
ObjectTemplate.aiTemplate Browning 
ObjectTemplate.projectileTemplate Browning_Projectile
ObjectTemplate.setTracerTemplate Tracer_Projectile CRD_NONE/2/0/0
ObjectTemplate.projectilePosition 0/0/1
ObjectTemplate.magSize 500
ObjectTemplate.numOfMag 1
ObjectTemplate.magType 0
ObjectTemplate.reloadtime 0.1
ObjectTemplate.recoilSpeed 50.0
ObjectTemplate.roundOfFire 10
ObjectTemplate.autoReload 1
ObjectTemplate.addDevFire 0

Rem *** Deviation Begin *****

ObjectTemplate.velocity 1000
ObjectTemplate.setFireDev 0.7 0.3 0.048
ObjectTemplate.setMinDev 0.5

Rem *** Deviation  End *****
ObjectTemplate.fireInCameraDof 0
objectTemplate.heatAddWhenFire 0.04
objectTemplate.coolDownPerSec 0.4
objectTemplate.timeDelayOnOverHeat 2
ObjectTemplate.setInputFire c_PIAltFire

ObjectTemplate.addSkeletonIK Bip01_R_Hand 0.12/0.08/-0.68 -30/80/90
ObjectTemplate.addSkeletonIK Bip01_L_Hand -0.12/0.08/-0.68 30/-100/-90

ObjectTemplate.addTemplate e_MuzzHeavy
ObjectTemplate.startoneffects 1
ObjectTemplate.setPosition 0/0.1/0.8
ObjectTemplate.setRotation 0/0/0

ObjectTemplate.addTemplate e_Shell1250mm
ObjectTemplate.startoneffects 1
ObjectTemplate.setPosition 0/0.12/0.16
ObjectTemplate.setRotation 0/0/0



rem *** ShermanScrollEngine ***
ObjectTemplate.create Engine ShermanScrollEngine
ObjectTemplate.setNetworkableInfo ShermanEngineInfo
ObjectTemplate.setAttachToListener 1
ObjectTemplate.loadSoundScript Sounds/ShermanEngine.ssc
ObjectTemplate.hasMobilePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate ShermanTrackL
ObjectTemplate.setPosition -0.009/-0.799/0
ObjectTemplate.addTemplate ShermanTrackR
ObjectTemplate.setPosition 0.01/-0.799/0
rem -------------------------------------
ObjectTemplate.setMinRotation -1/0/-1
ObjectTemplate.setMaxRotation 1/0/1
ObjectTemplate.setMaxSpeed 4/0/10
ObjectTemplate.setAcceleration 4/0/10
rem ObjectTemplate.setInputToYaw c_PIYaw
ObjectTemplate.setInputToRoll c_PIYaw
ObjectTemplate.setAutomaticReset 1
ObjectTemplate.setEngineType c_ETTank
ObjectTemplate.setTorque 4.0
ObjectTemplate.setDifferential 4.0
ObjectTemplate.setNumberOfGears 5
ObjectTemplate.setGearUp 0.95
ObjectTemplate.setGearDown 0.45
ObjectTemplate.setGearChangeTime 0.05
The engine is included.
controls;
a/d - move left/right
w/s - main gun elevation
up/down arrows - top MG elevation
primary fire - fire main gun
secondary fire - fire top MG
:D

EDIT: too busy at the moment for a video. How I test it is go to El-Elamien, spawn on allies, go to the places the tanks spawn. Go in front of the halftrack, look at the sherman + M10 place from the side, and spawn it.

NOTE!! Ramming rubble turns it, which is very annoying!!
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: A challenge... Side scroller platform game in 1942

Post by Swaffy »

I think I'd enjoy a top-down game more. That way you can steer and go around obstacles such as buildings.

(Swaffy'sMod mapside mod anyone?)

With VAPOR TRAILS.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
BotHunter
Posts: 480
Joined: Thu Jan 10, 2013 11:22 pm
Contact:

Re: A challenge... Side scroller platform game in 1942

Post by BotHunter »

I will make it into a ssm!! :)
Walk quietly and carry a sniper rifle
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: A challenge... Side scroller platform game in 1942

Post by Vilespring »

making it top-down will mean making the map flat, and stronger springs to the tank doesn't wobble at all.
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: A challenge... Side scroller platform game in 1942

Post by Swaffy »

Vilespring wrote:making it top-down will mean making the map flat, and stronger springs to the tank doesn't wobble at all.
That's one thing I'm curious about: how to attach a wheel to a vehicle without needing a spring. (In other words, it's solid and doesn't move.)
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: A challenge... Side scroller platform game in 1942

Post by Vilespring »

Well, a spring is what defines a wheel as a, what else? a wheel. So it's probably going to have to be a spring with a very high strength.
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
User avatar
fo0k
Posts: 1434
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: A challenge... Side scroller platform game in 1942

Post by fo0k »

if you are after a tank approach.. then the old classic would be pretty cool to figure out in bf

Image
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: A challenge... Side scroller platform game in 1942

Post by Vilespring »

My childhood was built around that game :3
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
Post Reply