Battlefield Modding Tutorials BFMODS

Battlefield Modding Tutorials
It is currently Mon Nov 19, 2018 4:52 am

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 27 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
PostPosted: Thu Oct 22, 2009 2:38 am 
Offline
User avatar

Joined: Sun Dec 31, 2006 12:13 am
Posts: 2027
You can spawn a projectile, I'm pretty sure.

But it just sits there, hovering.


Weapons shoot projectiles, which gives it its muzzle velocity.

_________________
Image


Top
 Profile Send private message E-mail  
 
PostPosted: Thu Oct 22, 2009 3:13 am 
Offline

Joined: Sun Jan 18, 2009 12:37 am
Posts: 170
Or make the projectiles PCOs with engines in a Physics.con file and make it have the velocity of a bullet or w/e you want...


Top
 Profile Send private message E-mail  
 
PostPosted: Thu Oct 22, 2009 5:13 pm 
Offline
User avatar

Joined: Tue Jul 05, 2005 12:00 am
Posts: 150
Getting closer......
Code:


ObjectTemplate.Active Binoculars
ObjectTemplate.magSize -1
ObjectTemplate.magType 0
ObjectTemplate.autoReload 1
ObjectTemplate.reloadtime 0.5
ObjectTemplate.fireOnce 2
ObjectTemplate.fireDelay 1
ObjectTemplate.Velocity 1000
ObjectTemplate.projectilePosition 0/0/0
ObjectTemplate.AmmoType 3
ObjectTemplate.projectileTemplate RifleProjectile

ObjectTemplate.Active RifleProjectile
ObjectTemplate.timeToLive CRD_NONE/10/0/0
ObjectTemplate.addTemplate scudspawner

ObjectTemplate.Active Willy
ObjectTemplate.speedMod 10
ObjectTemplate.drag 0
ObjectTemplate.addArmorEffect 0 scoutcarspawner -5/455/0
ObjectTemplate.addArmorEffect 0 scoutcarspawner -25/415/5
ObjectTemplate.addArmorEffect 0 scoutcarspawner 7/425/-3
ObjectTemplate.addArmorEffect 0 scoutcarspawner 25/355/-5
ObjectTemplate.addArmorEffect 0 scoutcarspawner -10/325/-1
ObjectTemplate.addArmorEffect 0 scoutcarspawner -25/415/-5
ObjectTemplate.addArmorEffect 0 scoutcarspawner 15/455/-3
ObjectTemplate.addArmorEffect 0 scoutcarspawner 25/315/-1
ObjectTemplate.addArmorEffect 0 scoutcarspawner -13/430/0
ObjectTemplate.addArmorEffect 0 scoutcarspawner -27/350/-4
ObjectTemplate.addArmorEffect 0 scoutcarspawner 13/435/2
ObjectTemplate.addArmorEffect 0 scoutcarspawner 17/425/-2
ObjectTemplate.addArmorEffect 0 scoutcarspawner 20/355/-5
ObjectTemplate.addArmorEffect 0 scoutcarspawner -5/325/-1
ObjectTemplate.addArmorEffect 0 scoutcarspawner -20/415/-5
ObjectTemplate.addArmorEffect 0 scoutcarspawner 5/455/-3
ObjectTemplate.addArmorEffect 0 scoutcarspawner 20/315/-1
ObjectTemplate.addArmorEffect 0 scoutcarspawner -8/430/0
ObjectTemplate.addArmorEffect 0 scoutcarspawner -22/350/-4
ObjectTemplate.addArmorEffect 0 scoutcarspawner 8/435/2
ObjectTemplate.addArmorEffect 0 scoutcarspawner 12/315/5
ObjectTemplate.addArmorEffect 0 scoutcarspawner -8/455/5
ObjectTemplate.addArmorEffect 0 scoutcarspawner -22/355/-2
ObjectTemplate.addArmorEffect 0 scoutcarspawner 8/425/-2

ObjectTemplate.Active scoutcarspawner
ObjectTemplate.setTeam 3

ObjectTemplate.Active SA-3GuidedRocket
ObjectTemplate.material 704
ObjectTemplate.material2 703
ObjectTemplate.radius  15
ObjectTemplate.ForceOnExplosion 300

ObjectTemplate.Active SA3RocketEngine
ObjectTemplate.setTorque 0
ObjectTemplate.setDifferential 0


They aren't hitting directly on target tho and I think it's because they are spawning pointing away from me..so there is a bit of drift because of the lift in the wings of the SA3...by the time they are straightened out in free fall they have traveled a slight bit off target...just have to adjust the rotation and it should work perfectly...now..is there any way to have it so the target does NOT get blown up by the initial projectile? Kind of defeats the airstrike if the target is already blown up.


Image


Top
 Profile Send private message E-mail  
 
PostPosted: Thu Oct 22, 2009 7:20 pm 
Offline
User avatar

Joined: Sun Sep 16, 2007 2:33 pm
Posts: 1809
Location: Your moms house
looks good so far

burp

_________________
Image


Top
 Profile Send private message E-mail  
 
PostPosted: Fri Oct 23, 2009 6:48 am 
Offline
User avatar

Joined: Tue Jul 05, 2005 12:00 am
Posts: 150
You need to slightly modify the APCSpawner and the Scoutcarspawner but...this is doin it for me...looks sweet in the game...and sounds even sweeter!! I used wake as the testbed so use the appropriate spawners.Now..... to Jam it in some maps!!
Code:
ObjectTemplate.Active Binoculars
ObjectTemplate.magSize -1
ObjectTemplate.magType 0
ObjectTemplate.autoReload 1
ObjectTemplate.reloadtime 60
ObjectTemplate.fireOnce 1
ObjectTemplate.fireDelay 1
ObjectTemplate.Velocity 1000
ObjectTemplate.projectilePosition 0/0/0
ObjectTemplate.AmmoType 3
ObjectTemplate.projectileTemplate RifleProjectile

ObjectTemplate.Active RifleProjectile
ObjectTemplate.timeToLive CRD_NONE/20/0/0
ObjectTemplate.addTemplate APCSpawner

ObjectTemplate.Active APCSpawner
ObjectTemplate.setTeam 3

ObjectTemplate.Active Willy
ObjectTemplate.speedMod 100
ObjectTemplate.explosionRadius 0
ObjectTemplate.explosionDamage 0
ObjectTemplate.drag 0
ObjectTemplate.addArmorEffect 0 scoutcarspawner -5/355/0
ObjectTemplate.addArmorEffect 0 scoutcarspawner -45/315/5
ObjectTemplate.addArmorEffect 0 scoutcarspawner 7/325/-3
ObjectTemplate.addArmorEffect 0 scoutcarspawner 45/355/-5
ObjectTemplate.addArmorEffect 0 scoutcarspawner -10/525/-1
ObjectTemplate.addArmorEffect 0 scoutcarspawner -25/315/-5
ObjectTemplate.addArmorEffect 0 scoutcarspawner 15/355/-3
ObjectTemplate.addArmorEffect 0 scoutcarspawner 45/315/-1
ObjectTemplate.addArmorEffect 0 scoutcarspawner -13/330/0
ObjectTemplate.addArmorEffect 0 scoutcarspawner -27/350/-4
ObjectTemplate.addArmorEffect 0 scoutcarspawner 13/535/2
ObjectTemplate.addArmorEffect 0 scoutcarspawner 17/225/-2
ObjectTemplate.addArmorEffect 0 scoutcarspawner 40/355/-5
ObjectTemplate.addArmorEffect 0 scoutcarspawner -5/325/-1
ObjectTemplate.addArmorEffect 0 scoutcarspawner -40/315/-5
ObjectTemplate.addArmorEffect 0 scoutcarspawner 5/255/-3
ObjectTemplate.addArmorEffect 0 scoutcarspawner 40/315/-1
ObjectTemplate.addArmorEffect 0 scoutcarspawner -8/230/0
ObjectTemplate.addArmorEffect 0 scoutcarspawner -22/350/-4
ObjectTemplate.addArmorEffect 0 scoutcarspawner 8/235/2
ObjectTemplate.addArmorEffect 0 scoutcarspawner 12/315/5
ObjectTemplate.addArmorEffect 0 scoutcarspawner -8/355/5
ObjectTemplate.addArmorEffect 0 scoutcarspawner -22/355/-2
ObjectTemplate.addArmorEffect 0 scoutcarspawner 8/525/-2

ObjectTemplate.Active scoutcarspawner
ObjectTemplate.setTeam 3
ObjectTemplate.rotation 0/0/90



ObjectTemplate.Active SA-3GuidedRocket
ObjectTemplate.explosionRadius 45
ObjectTemplate.explosionDamage 200
ObjectTemplate.explosionForceMod 400

ObjectTemplate.Active SA3RocketEngine
ObjectTemplate.setTorque 0
ObjectTemplate.setDifferential 0



Someone should try this and let me know what you think.....


Top
 Profile Send private message E-mail  
 
PostPosted: Fri Oct 23, 2009 4:12 pm 
Offline

Joined: Wed Oct 11, 2006 4:19 pm
Posts: 211
Location: Northern California
Is the code missing this?

ObjectTemplate.Active scoutcarspawner
ObjectTemplate.addTemplate SA-3GuidedRocket


How does the scoutcarspawner know to use SA-3GuidedRocket?

_________________
Image


Top
 Profile Send private message E-mail  
 
PostPosted: Fri Oct 23, 2009 4:44 pm 
Offline
User avatar

Joined: Thu Oct 23, 2008 6:47 pm
Posts: 935
Location: Charleston S.C.
why doesn't our new 'robo' admin not move this to the questions section. see, this is a problem because he cannot discern the difference between a question and someone posting a new vehicle or weapon discovery.

_________________
Image


Top
 Profile Send private message E-mail  
 
PostPosted: Fri Oct 23, 2009 5:02 pm 
Offline
User avatar

Joined: Thu Feb 05, 2009 7:54 pm
Posts: 487
Location: Germany
What do you expect? I mean, he even censored the word bfmods in this forum :D Yes, that's bf_mods...I don't quite get what problem he has with other websites...I mean, we also link to bfsingleplayer and other tutorial sites and forums...but bf_mods (which doesn't even have the same focus as SSM) gets banned/censored? Come on... :roll:

_________________
Kampagne XI - Vereinte Achsenmächte
Image Image
www.wargamer-project.de
xFire: wgpsenshi


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 27 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Group