View Single Post
  #41  
Old October 15th, 2006, 12:26 PM
AngleWyrm's Avatar

AngleWyrm AngleWyrm is offline
Second Lieutenant
 
Join Date: Mar 2005
Location: Seattle, WA
Posts: 417
Thanks: 0
Thanked 0 Times in 0 Posts
AngleWyrm is on a distinguished road
Default Re: Balance Mod Available for SE:V

Found system-level tonnage functions:

Sys_Get_Vehicle_Size_Tonnage_Space: long
plr_index:long
size_id:long

Sys_Get_Component_Tonnage_Space: long
plr_index: long
comp_id: long
comp_enh_id: long

Sys_Get_Vehicle_Design_Remaining_Tonnage_Space: long
design_id: long

//////////////
Looking at the internals of Add_Required_Components_To_Design, the function returns a boolean success, which might be feathered in as a bail flag if a large componant doesn't fit:

replacing:
if (comp_id > 0) then
call Add_Components_To_Vehicle_Design()
set bool_continue_design := TRUE
endif

with:
if (comp_id > 0) then
bool_continue_design := Add_Components_To_Vehicle_Design()
endif
Reply With Quote