安装 Steam						
					
				
				
									登录
											 | 
						语言
						
																																															繁體中文(繁体中文)
																													日本語(日语)
																													한국어(韩语)
																													ไทย(泰语)
																													български(保加利亚语)
																													Čeština(捷克语)
																													Dansk(丹麦语)
																													Deutsch(德语)
																													English(英语)
																													Español-España(西班牙语 - 西班牙)
																													Español - Latinoamérica(西班牙语 - 拉丁美洲)
																													Ελληνικά(希腊语)
																													Français(法语)
																													Italiano(意大利语)
																													Bahasa Indonesia(印度尼西亚语)
																													Magyar(匈牙利语)
																													Nederlands(荷兰语)
																													Norsk(挪威语)
																													Polski(波兰语)
																													Português(葡萄牙语 - 葡萄牙)
																													Português-Brasil(葡萄牙语 - 巴西)
																													Română(罗马尼亚语)
																													Русский(俄语)
																													Suomi(芬兰语)
																													Svenska(瑞典语)
																													Türkçe(土耳其语)
																													Tiếng Việt(越南语)
																													Українська(乌克兰语)
																									报告翻译问题
							
						
											




Vector3D myPos = grid.GridIntegerToWorld(slimBlock.Position);
BoundingSphereD sphere = new BoundingSphereD(myPos, maxRange);
MyExplosionInfo bomb = new MyExplosionInfo(maxDamage, maxDamage, sphere, MyExplosionTypeEnum.BOMB_EXPLOSION, myTB!=null, true);
bomb.CreateParticleEffect = false;
MyExplosions.AddExplosion(ref bomb, true);
Sorry for late reply, i think the comma you put after my name stopped it from pinging me.
Realistically I think hydrogen will only explode in the presence of oxygen, so in SE oxygen generators (which presumably contain both elements) are more likely to go pop than straight H tanks. But tweak away with the config file, you can tailor it anyway you like.
Anyway @Aquila, instead of making a gas-tanks-only version, I figured it was time I learned how to get a mod working with a config file, so you can just zero out damage for all the items you don't want to explode, and tailor the remaining explosions exactly how you want 'em. Add me on Steam if you have any issues with it working, it seems to be fine both SP and DS for me.
I'm not sure why this is the case currently, but warheads do not explode in my install when I hit them with any projectile or other object. I haven't used warhead for a long time, as I have had better experiences with stone chunks stuffed into cargo containers, but if this is actually the case, I do not have any idea why and if this is not a bug, warhead explosions should be added changed in your modification for the sake of realism if you ask me.
If this wasn't intended and gets patched, I'll simply delete this comment, so others won't get confused and other comments won't be shoved even further down unnecessarily.
I am very thankful for your quick responses and probably speak for all of your followers, when I say that you are creating rather interesting modifications and accept critisism in a particularly constructive way.
Thanks @Dvc_Gamer and @d_valroth, may you benefit from sensible build placement!
@mcales the victim in the picture is the amazing Hammerhead Corvette http://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=890024928 that's all over the highlighted mods list at the moment. It's being beaten up badly by a small version of an MC80 http://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=606561194 which I've retrofitted with some weapons from Razortron's Star Wars Weapons mod http://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=598138548 .
For realistic survival I still prefer the native way of things, as they would not actually start any exothermic reaction by being penetrated or blown up (oxygen tanks and maybe even batteries would aid warheads or rocket explosions, for example, obviously, but you get the point).
The only thing that really bothers me in the default version though, is that hydrogen tanks do not explode on destruction, which this modification implements.
My code is actually very simple, just asks the engine to add scaled bomb explosions right as a block sustains critical damage. I hope the EJD mod comes back 'cos it certainly looks cool! I hadn't seen it before. <edit - typo :) >