View unanswered posts | View active topics It is currently Thu Mar 28, 2024 5:43 pm



Reply to topic  [ 13 posts ] 
 B27 New Modding Stuff 
Author Message
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13143
Location: Here
Reply with quote
Post B27 New Modding Stuff
Compilation of new modding features and/or bugs in build 27. The list is incomplete at the moment, will fill with more.

> INI variable "AirThreshold" for MOs that applies AirResistance only when the MO's velocity is above the set value.

> INI variable "RecoilTransmission" for HDFirearms notes how much recoil is applied to the weapon/user (1.0 is full recoil, 0.5 is half, 2.0 is double, etc.).

> Faction loadouts.

> SceneMan:CastMORay() and SceneMan:CastObstacleRay() have a new argument.

> Lua variable "myObject.IgnoresTeamHits" makes the object ignore collisions with objects on the same team.

> Descriptions will be displayed when you hover over a tech icon if there's a description in the Index of that Tech.
Code:
DataModule
   ModuleName = Browncoat Tech
   IconFile = ContentFile
      Path = Browncoats.rte/ModuleIcon.bmp
   Description = A strong mercenary group who are fearsome when confronted up-close. What they lack in range is made up for in durability, allowing them to close distances while soaking bullets.


> To get a faction to be able to be used in the Metagame, put "Tech" in the ModuleName of that Tech.
Code:
DataModule
   ModuleName = Browncoat Tech


Sun Jun 03, 2012 7:55 pm
Profile
User avatar

Joined: Sat Feb 12, 2011 8:05 pm
Posts: 39
Location: Somewhere over the Double Rainbow
Reply with quote
Post Re: B27 New Modding Stuff
I can't wait to really mess with some of this stuff, especially faction loadouts. eeeee

Also, thanks for listing the variable that toggles friendly fire. I rather dislike having to find armed test subjects for my weapons.


Mon Jun 04, 2012 12:56 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: B27 New Modding Stuff
I know this will sound stupid but, how does the .IgnoreTeamHits variable work? I used it on a craft I'm creating, on the function Create(self), like this "self.IgnoreTeamHits = true", but it's not working. I'm either using it wrong, or most probably there is another part of the script screwing that thing up.


Mon Jun 04, 2012 7:02 am
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13143
Location: Here
Reply with quote
Post Re: B27 New Modding Stuff
That should be ".IgnoresTeamHits".


Mon Jun 04, 2012 11:27 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: B27 New Modding Stuff
That explains much.
Thanks!


Mon Jun 04, 2012 9:04 pm
Profile
User avatar

Joined: Fri Aug 26, 2011 3:06 am
Posts: 42
Reply with quote
Post Re: B27 New Modding Stuff
I'm trying to figure out what makes vanilla bullets ignore teammates. Is it just hardcoded/internal? I searched all over the CC folder and can't find anything about it.

Is it a function of the bullets, or the actors?


Mon Jun 04, 2012 10:34 pm
Profile
User avatar

Joined: Mon Oct 11, 2010 1:15 pm
Posts: 594
Location: Finlandia
Reply with quote
Post Re: B27 New Modding Stuff
I think friendly bullets will always ignore teammates by default. The exception is to modify it with lua, which has the .IgnoreTeamHits function. Gib particles do hit teammates though, it'd be silly to use explosives without having the risk of hurting your allies.

There's also the new weapon property RecoilTransmission in the .ini code. It modifies the amount of recoil that actually applies to the actor when fired. 1 would be the default recoil, 0.1 = 10% of it, 2 = the recoil doubled, and so on. in case anyone was wondering


Tue Jun 12, 2012 7:09 pm
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13143
Location: Here
Reply with quote
Post Re: B27 New Modding Stuff
4zK wrote:
There's also the new weapon property RecoilTransmission in the .ini code. It modifies the amount of recoil that actually applies to the actor when fired. 1 would be the default recoil, 0.1 = 10% of it, 2 = the recoil doubled, and so on. in case anyone was wondering

Ah, thanks for reminding me about that, forgot to put it in. Added.


Wed Jun 13, 2012 12:13 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Re: B27 New Modding Stuff
I know DataModules can have "Author" variable, can somebody politely recommend that they be displayed somewhere in the description area? Perhaps underneath prefixed by "Created by" or somesuch.


Wed Jun 13, 2012 12:18 am
Profile
DRL Developer
DRL Developer

Joined: Fri May 15, 2009 10:29 am
Posts: 4107
Location: Russia
Reply with quote
Post Re: B27 New Modding Stuff
Don't forget AirThreshold.

Minimum velocity of an object, airresistance won't take it further down than this.


Wed Jun 13, 2012 7:58 pm
Profile
User avatar

Joined: Mon Oct 11, 2010 1:15 pm
Posts: 594
Location: Finlandia
Reply with quote
Post Re: B27 New Modding Stuff
I know this is a bit out-of-topic but I remember seeing a topic about stuff to add before the full release by Data, does anyone know where to find it / give me the link for it?

I remember some pixels having full glows around them (the trail and everything, not just the tip) in a former build, and I kinda miss that feature, could it be added seperately as a pixel property in the future?


Wed Jun 13, 2012 8:39 pm
Profile
Banned
User avatar

Joined: Sat Aug 16, 2008 7:17 pm
Posts: 282
Reply with quote
Post Re: B27 New Modding Stuff
Why the ♥♥♥♥ does B27 CTD on me during loading with no error message after I mess with rtes? :x


Mon Jun 18, 2012 8:11 pm
Profile
DRL Developer
DRL Developer

Joined: Fri May 15, 2009 10:29 am
Posts: 4107
Location: Russia
Reply with quote
Post Re: B27 New Modding Stuff
Could be a wrongly named CopyOf.


Mon Jun 18, 2012 8:31 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 13 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.062s | 13 Queries | GZIP : Off ]