[CSM] random vehicle weapons

Lots of cool and useful tips to mod either serverside or clientside

random vehicle weapons

Postby freddy » Wed Jul 03, 2013 8:26 am

Or more like sequential but anyway. Cant remember if this was posted earlier or not so here is a possible rerun.

example csm code
Code: Select all
ObjectTemplate.create Bundle WillyComplex
ObjectTemplate.addTemplate WillyWeapon
ObjectTemplate.setPosition 0.5/0.3/0
ObjectTemplate.setRandomGeometries 3


map based
Code: Select all
ObjectTemplate.Active WillyComplex
ObjectTemplate.addTemplate WillyWeapon
ObjectTemplate.setPosition 0.5/0.3/0
ObjectTemplate.setRandomGeometries 3


example weapons
Code: Select all
ObjectTemplate.create FireArms WillyWeapon1
ObjectTemplate.setNetworkableInfo TankFireArmInfo
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
ObjectTemplate.setFireCameraShakeAnimationState FireMachineGunShake

ObjectTemplate.create FireArms WillyWeapon2
ObjectTemplate.setNetworkableInfo TankFireArmInfo
ObjectTemplate.loadSoundScript Sounds/M10Cannon.ssc
ObjectTemplate.geometry M10_Cannon1_M1
ObjectTemplate.aiTemplate M10MainGun
rem -------------------------------------
ObjectTemplate.addTemplate e_MuzzPanz
ObjectTemplate.setPosition 0/0/1
ObjectTemplate.setRotation -179.999/0/0
rem -------------------------------------
ObjectTemplate.projectileTemplate M10Projectile
ObjectTemplate.projectilePosition 0/0/0
ObjectTemplate.magSize 30
ObjectTemplate.numOfMag 1
ObjectTemplate.velocity 100
ObjectTemplate.autoReload 1
ObjectTemplate.reloadtime 0.25
ObjectTemplate.roundOfFire 0.25
ObjectTemplate.fireingForce 90
ObjectTemplate.recoilSpeed 10
ObjectTemplate.recoilSize 14

ObjectTemplate.create FireArms WillyWeapon3
ObjectTemplate.setNetworkableInfo TankFireArmInfo
ObjectTemplate.geometry Defgun_barrel_end_m1
ObjectTemplate.loadSoundScript Sounds/defgunfire.ssc
ObjectTemplate.aiTemplate DefGunGunAI
rem -------------------------------------
ObjectTemplate.addTemplate e_MuzzDefGun
ObjectTemplate.setPosition 0/0/9.2
rem ObjectTemplate.setPosition 0/0/0.5
ObjectTemplate.setRotation -179.999/0/0
rem -------------------------------------
ObjectTemplate.projectileTemplate Defgun_Projectile
ObjectTemplate.projectilePosition 0/0/9.7
ObjectTemplate.magSize 499
ObjectTemplate.numOfMag 999
ObjectTemplate.velocity 125
ObjectTemplate.reloadtime 5
ObjectTemplate.roundOfFire 0.2
ObjectTemplate.recoilSpeed 10.0
ObjectTemplate.recoilSize 50



User avatar
freddy
 
Posts: 1230
Joined: Sun Oct 18, 2009 4:58 pm

Re: random vehicle weapons

Postby fo0k » Thu Jul 04, 2013 3:19 am

random rims? :lol:
User avatar
fo0k
 
Posts: 1412
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: random vehicle weapons

Postby freddy » Thu Jul 04, 2013 11:35 pm

you would like that huh? :mrgreen:

hmm i think that could actually work, just point to different textures for the wheel


wait, you already done that have you?
User avatar
freddy
 
Posts: 1230
Joined: Sun Oct 18, 2009 4:58 pm

Re: random vehicle weapons

Postby fo0k » Fri Jul 05, 2013 1:11 pm

heheh no, just sounded fun. probably a lot easier to just have a random wheel mesh in all honesty.. just never thought of it
User avatar
fo0k
 
Posts: 1412
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: random vehicle weapons

Postby Vilespring » Fri Jul 05, 2013 3:00 pm

That can be used to have vehicles with cosmetic difference, like battle damage, things like "Tiger Killer", or maybe some tally marks. :lol:
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
Vilespring
 
Posts: 743
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: random vehicle weapons

Postby Swaffy » Thu Jul 11, 2013 6:40 pm

Actually, that would be great for a mod such as IS-82. You can have vehicles with meshes that change. Like a red car, or blue with a racing stripe, or maybe black with flames.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Image
User avatar
Swaffy
 
Posts: 1708
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: random vehicle weapons

Postby Vilespring » Fri Jul 12, 2013 2:39 am

or any mod to make things have a personality, other than hundreds of the same thing.
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
Vilespring
 
Posts: 743
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: random vehicle weapons

Postby Swaffy » Fri Aug 02, 2013 6:24 am

Vilespring wrote:or any mod to make things have a personality, other than hundreds of the same thing.

Jeep willy with Kettenkrad tracks anyone?
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Image
User avatar
Swaffy
 
Posts: 1708
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: random vehicle weapons

Postby Vilespring » Fri Aug 02, 2013 4:38 pm

I have seen that before in a mod. I think it was TWITMTB (The Way it Was Meant To Be).
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
Vilespring
 
Posts: 743
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: random vehicle weapons

Postby freddy » Fri Aug 02, 2013 7:20 pm

you can use it on spawners to, like if you sink a carrier it changes the planes it is spawning.
User avatar
freddy
 
Posts: 1230
Joined: Sun Oct 18, 2009 4:58 pm


Return to General Modding Tutorials

Who is online

Users browsing this forum: No registered users and 5 guests