Page 1 of 1

"Gibb" objects

Posted: Wed Apr 25, 2018 2:44 am
by Diamondback
Hey guys, yesterday while looking at some files in the Objects.rfa archive I stumbled upon the "Gibb" objects.

These are basically the debris that spawn when you shoot a stone wall with a bazooka or tank shell... turns out these objects are special static objects that are hybrids between PCOs and normal static objects, as you can see in the code below:

Code: Select all

ObjectTemplate.create SimpleObject Gibb_concret20_m1
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.geometry Gibb_concret20_m1
ObjectTemplate.setHasCollisionPhysics 1
ObjectTemplate.setHasResponsePhysics 1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.destroyed 1
ObjectTemplate.HasArmor 1
ObjectTemplate.Hitpoints 0
ObjectTemplate.timeToLiveAfterDeath  3
ObjectTemplate.fadeAtTimeToLiveAfterDeath 1
ObjectTemplate.timeToStartFadeAfterDeath 1
ObjectTemplate.damageFromWater 0
ObjectTemplate.explosionDamage 0
ObjectTemplate.hpLostWhileUpSideDown 0


ObjectTemplate.sinkInToLandAfterDeathSpeed 10
This Static Object shares properties normally found for a PCO. Very interesting stuff. Could have some nice applications.

Re: "Gibb" objects

Posted: Thu Apr 26, 2018 2:32 am
by Swaffy
Yep I have actually died from these objects while driving a car/tank. They do collision damage.

Re: "Gibb" objects

Posted: Fri Apr 27, 2018 11:54 am
by takiwa
Swaffy wrote:Yep I have actually died from these objects while driving a car/tank. They do collision damage.
I have often thought about doing my scrap metal tosses from aa/at guns like this, where they would do damage from a collision rather than the unrealistic explosion of the object, but what can I say...I'm lazy :roll: