[CSM] "Gibb" objects

Ask questions, discuss ideas, get answers

"Gibb" objects

Postby Classical Modder » Wed Apr 25, 2018 2:44 am

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.
{SoH} Clan Leader // http://sohclan.forumotion.com/
See my Strasbourg map project here.
GSC: diamondback67
Steam: diamondback67
Classical Modder
Posts: 403
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada

Re: "Gibb" objects

Postby Swaffy » Thu Apr 26, 2018 2:32 am

Yep I have actually died from these objects while driving a car/tank. They do collision damage.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Posts: 1697
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: "Gibb" objects

Postby takiwa » Fri Apr 27, 2018 11:54 am

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:
Posts: 100
Joined: Mon Dec 30, 2013 4:29 pm
Location: The Great State of Georgia

Return to 1942 Modding Discussion

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 5 guests