Product Chat / Shoot through trees?!

Author
Message
HappyAlpaka
8
Years of Service
User Offline
Joined: 21st Jan 2016
Location:
Posted: 22nd Jan 2016 17:13
Hi,

i made a small forest in my map with some enemys.
but unfortunately i cannot shoot through trees.
That would be okay, but when an enemy is even near the tree, i cannot shoot him.
i always see just some wood peaces instead of blood.
is there something i can do?!
PM
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 22nd Jan 2016 17:21 Edited at: 22nd Jan 2016 17:21
Open up the FPE file of the trees and there should be a collision mode entry, you can change the number there to switch it from cube, polygon, character, none etc, it's probably been set to cube so try changing the number, I can't tell you which number corresponds to which though as I don't know.
HappyAlpaka
8
Years of Service
User Offline
Joined: 21st Jan 2016
Location:
Posted: 22nd Jan 2016 17:41
Thank you Belidos, i will try that!
PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 22nd Jan 2016 19:45
Quote: "I can't tell you which number corresponds to which though as I don't know."


https://forum.game-guru.com/thread/214389

3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM
HappyAlpaka
8
Years of Service
User Offline
Joined: 21st Jan 2016
Location:
Posted: 22nd Jan 2016 22:01
thanks 3com! I tried it with "11", works fine for me. can't shoot through the tree trunk, but through the branches. Thats pretty much what i wanted
PM
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 22nd Jan 2016 23:54 Edited at: 22nd Jan 2016 23:57
Read this document in the docs folder of the install.
Inside it, there is an explanation of the limb collision.
'Importing models into GameGuru.pdf'

For trees you could set collision for the trunk and have no collision for the leaves at all. Just have to find the limb number.

You will need to play with this.

For very complicated items, you may only wish to have partial collision. A Tree for example. POLYGON collision would be very slow due to the volume of the leaves and BOX collision would be too imprecise as the player would not be able to get close to the tree. For these types of items, limb collision can be used.

collisionmode = 100x

Replacing x with the limb number will cause that limb only to receive BOX collision and the rest of the object will have no collision at all. Following the above example this allows the trunk of the tree to have collision allowing the player to walk right up to it without colliding with the leaves.


See if this will allow you to shot thru the leaves.
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

HappyAlpaka
8
Years of Service
User Offline
Joined: 21st Jan 2016
Location:
Posted: 23rd Jan 2016 18:08
works great, thanks!
PM
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 23rd Jan 2016 20:39
Your welcome.
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

Login to post a reply

Server time is: 2024-11-25 05:32:02
Your offset time is: 2024-11-25 05:32:02