Scripts / [SOLVED] Winter breath steam

Author
Message
osiem80
5
Years of Service
User Offline
Joined: 24th Jan 2019
Location: Poland
Posted: 13th Oct 2019 13:27 Edited at: 13th Oct 2019 13:28
Hi i wanna create a winter breath effect for my enemies for levels located in winter, i just took the dust puff decal and positioned it in front of the characters head, looks quite good so far but i need to clip the decal to the character so it moves with him and dont stay at the same place, and i wanna make the decal animation slower, how to get it?

The author of this post has marked a post as an answer.

Go to answer
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 13th Oct 2019 15:18
You won't get it done with decals, it would be a tough one with particles unless the model has an appropriate 'limb' that the particle emitter could be attached to, if you can identify a limb number I could try to write a script to do this.
Been there, done that, got all the T-Shirts!
PM
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 13th Oct 2019 15:50
sorry for the intrusion but since it's related i ask in the osiem thread---
and what about a similar system (breath effect) for the player insted?maybe that ca nbe triggered when player is outside in a cold area and disable the effect when noT??
PC Specs:
AMD QUADCORE 880K @4.5GHZ, 32GB RAM DDR3 1600, M/B ASUS A88XM-PLUS
SVGA NVDIA 1660GTX 6GB , SSD KINGSTON A400 1TB, 2X HHD SEAGATE BARRACUDA 4TB
PM
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 13th Oct 2019 16:08
Most of the default characters have the limb number for the head in their fpe's for headshots so I suppose you could attach a particle to the head limb which is where the breath would come from.

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Primary Laptop:
i5, NV1050 4GB, 8GB memory, 1x 1TB HDD, Win10.

Secondary Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
granada
Forum Support
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 13th Oct 2019 16:10 Edited at: 13th Oct 2019 16:35
Just attach another bone to the head part of the skeleton using fragmotion, move it outside the mouth name it breath and AmenMoses can sort you a script

Edit (@osiem80 check you pm i sent you uber soldier with breath bone in front of the mouth )

Dave
Windows 10 Pro 64 bit
GeForce RTX™ 2070 GAMING OC 8G
AMD FX (tm)-9590 Eight-core Processor
31.96 GB RAM
3840 x 2160 ,60 Hz
PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 13th Oct 2019 16:42
Cool idea though
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
osiem80
5
Years of Service
User Offline
Joined: 24th Jan 2019
Location: Poland
Posted: 13th Oct 2019 16:54 Edited at: 13th Oct 2019 16:57
@granada
Thank u, i was figuring out if theres a way to do it without the bone, there is a posibility to linik entities thogether by pressing L+LMB right?
@synchromesh
Thnx , maybe this thread belong to the script section?If amen made the script could u move the thread there?ty
@AmenMoses
heres the model from granada for the script

Attachments

Login to view attachments
PM
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 13th Oct 2019 17:19 Edited at: 13th Oct 2019 17:46
https://www.dropbox.com/s/84hfy7t9143lmkg/Limb%20Viewer.rar?dl=0

a different apps that can identify limb numbers.

Particles would be the way to go.
RIP
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

New:
Intel(R) Core(TM) i5-8400 CPU @ 2.81GHz, 12GB RAM, Nvidia gtx1050ti 4gb, Windows 10 Home 64bit, Screen resolution 1920 x 1080. System Passmark 3774




AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 13th Oct 2019 17:21
The player would be trickier as it would be so close to the camera it would have to a very good particles sheet to look realistic.

So I tried this with the masked soldier for which the fpe has 'headlimbs = 32,54'.

Using either of these numbers gives me 'error 7023' which is "Limb does not exist".
Been there, done that, got all the T-Shirts!
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 13th Oct 2019 17:24
@Pirate Myke : dead link in the thread.

@granade what is the limb index for the uber soldier model you modified?
Been there, done that, got all the T-Shirts!
PM
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 13th Oct 2019 17:32
Yep fixed the above link and added a second program that can do the same.
RIP
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

New:
Intel(R) Core(TM) i5-8400 CPU @ 2.81GHz, 12GB RAM, Nvidia gtx1050ti 4gb, Windows 10 Home 64bit, Screen resolution 1920 x 1080. System Passmark 3774




osiem80
5
Years of Service
User Offline
Joined: 24th Jan 2019
Location: Poland
Posted: 13th Oct 2019 17:39 Edited at: 13th Oct 2019 17:42
The programs doesnt work, error 105
btw. whats a limb index?
The breath bone id is 23 in fragmo if u mean that
PM
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 13th Oct 2019 17:46
This app gives you the proper numbers for GG application.
I am uploading another zip file.
You have to put a copy of the character x file and the diffuse texture renamed to the character.dds to get it running.
May have to run in admin mod.

https://www.dropbox.com/s/vd12l12uy30kycb/limbfinderWorking.zip?dl=0
RIP
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

New:
Intel(R) Core(TM) i5-8400 CPU @ 2.81GHz, 12GB RAM, Nvidia gtx1050ti 4gb, Windows 10 Home 64bit, Screen resolution 1920 x 1080. System Passmark 3774




AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 13th Oct 2019 18:24 Edited at: 13th Oct 2019 18:26
I pressed E to export the limb details but nothing seemed to happen, where does it export them to?

It's alright, I found them.
Been there, done that, got all the T-Shirts!
PM
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 13th Oct 2019 18:34
Excellent.
RIP
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

New:
Intel(R) Core(TM) i5-8400 CPU @ 2.81GHz, 12GB RAM, Nvidia gtx1050ti 4gb, Windows 10 Home 64bit, Screen resolution 1920 x 1080. System Passmark 3774




AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 13th Oct 2019 18:36
This post has been marked by the post author as the answer.


Quick attempt, heavy smoker this one.
Been there, done that, got all the T-Shirts!

Attachments

Login to view attachments
PM
osiem80
5
Years of Service
User Offline
Joined: 24th Jan 2019
Location: Poland
Posted: 13th Oct 2019 18:47
Quote: "Quick attempt, heavy smoker this one."

Yeah that was my first tough when i saw the video
That brough me on a idea to make a little cigarette model
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 13th Oct 2019 18:50 Edited at: 13th Oct 2019 18:51
Would need to tweak the emitter values to get a better effect. A lot less alpha and a bit of randomness to the 'speed' values would make a big difference.

Btw, this is probably very similar to what cyber did with the fire breathing dragon.
Been there, done that, got all the T-Shirts!
PM
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 13th Oct 2019 19:01
Very nice. Thank you.
RIP
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

New:
Intel(R) Core(TM) i5-8400 CPU @ 2.81GHz, 12GB RAM, Nvidia gtx1050ti 4gb, Windows 10 Home 64bit, Screen resolution 1920 x 1080. System Passmark 3774




AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 13th Oct 2019 19:05
You could also change the shader used by the emitter to the additive one like cyber did, and change the image to use the smoke puff one (remember to change the frames and animation speed values to match).
Been there, done that, got all the T-Shirts!
PM
osiem80
5
Years of Service
User Offline
Joined: 24th Jan 2019
Location: Poland
Posted: 13th Oct 2019 19:13
Thank u
PM
granada
Forum Support
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 13th Oct 2019 19:37
All sorted

Dave
Windows 10 Pro 64 bit
GeForce RTX™ 2070 GAMING OC 8G
AMD FX (tm)-9590 Eight-core Processor
31.96 GB RAM
3840 x 2160 ,60 Hz
PM
cybernescence
GameGuru Master
11
Years of Service
User Offline
Joined: 28th Jan 2013
Playing: Cogwheel Chronicles
Posted: 13th Oct 2019 20:36
Quote: "Btw, this is probably very similar to what cyber did with the fire breathing dragon"


Yes, and it's a lot easier with an existing in-engine command available by lua, so added it:

limb_number = GetLimbByName(enum,limbstring)

So if call limbs 'smoke' for example in models, limb_number = GetLimbByName(e,"smoke") returns the number to attach the particle to.

The code if anyone wants it:




AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 13th Oct 2019 20:59 Edited at: 13th Oct 2019 21:00
Lol, I was actually trying to use a similar function that I had added myself, then realised I was using the Beta build so it wasn't there.

So all someone needs to do now is add a 'breath' bone to all the characters.
Been there, done that, got all the T-Shirts!
PM
Blacknyt46
8
Years of Service
User Offline
Joined: 29th Feb 2016
Location:
Posted: 13th Oct 2019 22:28
Wow,Very cool. So if I need some smoke coming off a muffler,the muffler would need a bone?
Jim C
granada
Forum Support
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 13th Oct 2019 22:31
Quote: "Wow,Very cool. So if I need some smoke coming off a muffler,the muffler would need a bone?
"


Yes it will need a bone ,are you talking about a weapon

Dave
Windows 10 Pro 64 bit
GeForce RTX™ 2070 GAMING OC 8G
AMD FX (tm)-9590 Eight-core Processor
31.96 GB RAM
3840 x 2160 ,60 Hz
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 13th Oct 2019 23:06
I think he means exhaust pipe.
Been there, done that, got all the T-Shirts!
PM
granada
Forum Support
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 13th Oct 2019 23:11
Quote: "I think he means exhaust pipe"

I think you could be right

Dave
Windows 10 Pro 64 bit
GeForce RTX™ 2070 GAMING OC 8G
AMD FX (tm)-9590 Eight-core Processor
31.96 GB RAM
3840 x 2160 ,60 Hz
PM
osiem80
5
Years of Service
User Offline
Joined: 24th Jan 2019
Location: Poland
Posted: 13th Oct 2019 23:16 Edited at: 13th Oct 2019 23:16
Quote: "Wow,Very cool. So if I need some smoke coming off a muffler,the muffler would need a bone?"

Adding bones are very easy with fragmo, u dont even have to buy it u can use the demo version
@synchromesh
can u move the thread to scripts pls?
ty
PM
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 13th Oct 2019 23:31
Thread moved to scripting at OP's request.
RIP
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

New:
Intel(R) Core(TM) i5-8400 CPU @ 2.81GHz, 12GB RAM, Nvidia gtx1050ti 4gb, Windows 10 Home 64bit, Screen resolution 1920 x 1080. System Passmark 3774




Login to post a reply

Server time is: 2024-04-27 05:12:49
Your offset time is: 2024-04-27 05:12:49