add particlegenerator to bullet

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
|K.O.S.H.
Posts: 3724
Joined: Fri, 19. Dec 03, 10:36
x3tc

add particlegenerator to bullet

Post by |K.O.S.H. » Sun, 23. May 21, 20:35

is it possible to add a particle generator (like an engine trail) to a bullet?

In X3 i amde cool bullets with smoke trails, i miss them ;)
Wing Commander Mod - German Topic
06.07.11 - v1.1 RELEASED!

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13293
Joined: Sun, 15. Feb 04, 20:12
x4

Re: add particlegenerator to bullet

Post by euclid » Wed, 26. May 21, 02:51

The title is a tad misleading if you want add a trail to bullets. I'd start by looking at the trails of missiles and then try to mod the particular bullet correspondingly.

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

User avatar
Shuulo
Posts: 1629
Joined: Mon, 14. Apr 08, 17:03
x4

Re: add particlegenerator to bullet

Post by Shuulo » Wed, 26. May 21, 16:28

This is something I wanted to do for quite a while but failed. If you add particle emitter to the bullet as it worked in XR it will not work properly, particles will travel alongside projectile (in the same "grid" or whatever its called) and will not leave the trail like expected.

Missile trails dont work for bullets

If some dev can help ad guide how to add this i will be very thankful.

|K.O.S.H.
Posts: 3724
Joined: Fri, 19. Dec 03, 10:36
x3tc

Re: add particlegenerator to bullet

Post by |K.O.S.H. » Thu, 27. May 21, 09:56

euclid wrote:
Wed, 26. May 21, 02:51
The title is a tad misleading if you want add a trail to bullets. I'd start by looking at the trails of missiles and then try to mod the particular bullet correspondingly.

Cheers Euclid
But a particle generator is exactly what i want.
I want a trail of smoke, with particles, that rest on the position they were created.
Wing Commander Mod - German Topic
06.07.11 - v1.1 RELEASED!

|K.O.S.H.
Posts: 3724
Joined: Fri, 19. Dec 03, 10:36
x3tc

Re: add particlegenerator to bullet

Post by |K.O.S.H. » Thu, 27. May 21, 21:44

i tried a missile trail, but it failed:

Code: Select all

		<layer>
				<waypoints/>
				<lights>
					<omni name="XU Omni01" shadow="0" r="157" g="255" b="252" range="100" shadowrange="100" lighteffect="1" trigger="1" intensity="2" specularintensity="1">
						<lightanimations/>
						<offset>
							<position x="0" y="0" z="-2.56374"/>
						</offset>
					</omni>
				</lights>
				<trailemitters>
					<emitter name="trail_missile_player_torpedo" type="trail_missile_player_torpedo">
						<offset>
							<position x="0" y="0" z="-1.18546"/>
						</offset>
					</emitter>
				</trailemitters>
			</layer>
Wing Commander Mod - German Topic
06.07.11 - v1.1 RELEASED!

Post Reply

Return to “X4: Foundations - Scripts and Modding”