Page 1 of 2

Little Help Please

Posted: Sat Jun 05, 2010 5:47 am
by Master Jay
Hey People, me and my clan where thinking of some cool mod idieas for are server we thought it would be cool if we had a 40 col machine gun on a back of a jeep and make a plane shot rockets/bullets at the same time...

can some one give me the code and tall me where they go? thanks mates :D

Re: Little Help Please

Posted: Sat Jun 05, 2010 6:32 am
by Kuyong_Chuin
Master Jay wrote:Hey People, me and my clan where thinking of some cool mod idieas for are server we thought it would be cool if we had a 40 col machine gun on a back of a jeep and make a plane shot rockets/bullets at the same time...

can some one give me the code and tall me where they go? thanks mates :D
In the SW multiplayer map Raid on Agheila there is a (Unless my sound is messed up on that map) a British jeep with a silenced 50 Cal for the passenger already in the game. As for a plane shooting rockets and bullets at the same time without having the guns as primary fire and rockets as the alt fire I have no idea, but if you want rockets as an alt fire I'd look at how the Flettner Rocket Launcher is set up on that same map in Raid_on_Agheila/objects/Flettner/weapons.con file it has both MG's and rockets. I just wish the physics on the Flettner was better on this engine though. That has to be the hardest chopper to control I ever flew in this game but the easiest to land on a small area. Would be great to land on a Tango with if it was on BFV but wouldn't last long it is slow, hard to steer without losing control if you give it too much power and would be easy to shoot down with bfv weapons like the SA-7. Here is the code from the Flettner's weapon.con just incase you don't have SW to get you started. If you don't have SW maybe someone will upload the M1919A4 model and code files you will need to set it up like the britjeep for you. If you ask them real nice. ;)

Code: Select all

rem *** FlettnerRocketLauncher ***
ObjectTemplate.create FireArms FlettnerRocketLauncher
ObjectTemplate.setNetworkableInfo PlaneFireArmInfo
ObjectTemplate.projectileTemplate FlettnerRocketProjectile
ObjectTemplate.projectilePosition 0/-0.4/0
ObjectTemplate.magSize 16
ObjectTemplate.numOfMag 1
ObjectTemplate.reloadtime 4
ObjectTemplate.velocity 60
ObjectTemplate.roundOfFire .25
ObjectTemplate.autoReload 1
ObjectTemplate.fireOnce 1
ObjectTemplate.setInputFire c_PIAltFire
ObjectTemplate.AmmoType	8

ObjectTemplate.create Projectile FlettnerRocketProjectile 
ObjectTemplate.geometry projectile_m1
ObjectTemplate.timeToLive CRD_NONE/12/0/0
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.gravityModifier 0.2
ObjectTemplate.hasCollisionEffect 1
ObjectTemplate.invisibleAtEndEffect 1
ObjectTemplate.damageType 1
ObjectTemplate.material 242
ObjectTemplate.material2 204
ObjectTemplate.radius 12
ObjectTemplate.ForceOnExplosion 10
ObjectTemplate.addTemplate e_rocketFume
ObjectTemplate.loadSoundScript Sounds\FlettnerRocketProjectile.ssc

ObjectTemplate.create FireArms FlettnerMG
ObjectTemplate.setNetworkableInfo PlaneFireArmInfo
ObjectTemplate.loadSoundScript Sounds/FlettnerMG.ssc
ObjectTemplate.aiTemplate BF109MachineGun
rem -------------------------------------
ObjectTemplate.visibleBarrelTemplate e_MuzzSG44
rem -------------------------------------
ObjectTemplate.projectileTemplate BF109Projectile
ObjectTemplate.projectilePosition 0/0/2
ObjectTemplate.setTracerTemplate Tracer_Projectile CRD_NONE/3/0/0
ObjectTemplate.magSize 900
ObjectTemplate.numOfMag 1
ObjectTemplate.velocity 400
ObjectTemplate.roundOfFire 12
ObjectTemplate.AmmoType	8

Posted: Sat Jun 05, 2010 12:35 pm
by freddy

Code: Select all

ObjectTemplate.Active CorsairGuns
ObjectTemplate.projectilePosition 0/0/3
ObjectTemplate.setTracerTemplate KatyushaRocket CRD_NONE/2/0/0
ObjectTemplate.roundOfFire 24

ObjectTemplate.Active KatyushaRocket
ObjectTemplate.forwardmod 30

Re: Little Help Please

Posted: Sat Jun 05, 2010 5:48 pm
by Master Jay
ok where i put it and i dont know where those codes go?

ObjectSpawnTemplates.con

Posted: Sat Jun 05, 2010 9:10 pm
by freddy
cĀ“mon you should know this by now..

Re: Little Help Please

Posted: Sun Jun 06, 2010 12:23 am
by Master Jay
nope :D

Re: Little Help Please

Posted: Sun Jun 06, 2010 7:25 pm
by Master Jay
please im still stupied :ugeek:

Posted: Sun Jun 06, 2010 10:09 pm
by freddy
ObjectSpawnTemplates.con

Re: Little Help Please

Posted: Sun Jun 06, 2010 11:50 pm
by Master Jay
never worked :( i put your and the others one on objectspawntemplete.con

Posted: Mon Jun 07, 2010 12:11 am
by freddy
lol i dont think your stupid just maybe a lill lazy? 8-)

you may have to tweak the code a bit, i moved the guns forward 1 meter with the ObjectTemplate.projectilePosition 0/0/3 and the forwardmod set to 30, this is for preventing that the plane flies into the rocket before its gaining momentum. but it may not be nessesary or it may need a little tweaking, you have to try for your self :mrgreen:

and your clanmates need the patch to or they cant see any rockets at all :!: