你先得学会如何解包并修改参数,具体教程去百度一下...
4 n; N2 {) D/ e* r* Q以中型4联装20mm近防炮为例,它使用"zgn_20mmhulldefensegun"弹药,在x:\homeworld2\data\weapon\zgn_20mmhulldefensegun里,找到"zgn_20mmhulldefensegun.wepn"文件:+ G7 e7 e, s8 U% `6 A* c# O
/ w* ~" ?8 V/ k" P$ }. IStartWeaponConfig(NewWeaponType,"AnimatedTurret","Bullet","hdefense","Normal",2500,2200,0,0,0,0,1,1,0,0.1,0,0,1,1,60,60,0.1,"Normal",1,0,0)7 q! z* a" R* D; r: D/ O# j6 B
AddWeaponResult(NewWeaponType,"Hit","DamageHealth","Target",5,5,""): v+ g2 O) T8 ~
setPenetration(NewWeaponType,15,1,{9 l& W1 N7 s# {, I* L
PlanetKillerArmour = 0,
: U8 E8 L. k1 k; k0 j; S})
1 {% m$ }/ H2 [4 O3 `9 `4 @setAccuracy(NewWeaponType,1,{# s- _5 s2 c* K
Fighter = 0.15,
# L! _/ \+ Q/ O2 x D},{) y$ A4 u3 e* x. @& a
Corvette = 0.2,
5 R# s0 w" o) ]- `2 c},{
6 e' w( H* ~( ` munition = 0.2,( x# V; i7 O4 l
},{
5 e- S8 s" m( @+ { Frigate = 0.8,! O+ H% p( ~* R; ^' i5 g$ s
damage = 1,; j+ f2 E" c5 s* ^% \
},{
7 g8 Q8 z8 a' x3 C/ g* u Resource = 0.3,( W3 j4 N6 ^. r" [
damage = 1,4 d6 n, i9 K7 \( W6 F- Z
},{, C% m! m& {1 \1 a) \, P% h
SmallCapitalShip = 0.6,
0 a- e/ p0 P) K, d/ _1 A. D7 f6 } damage = 1,
7 d' C! ]$ w6 s1 N9 N},{: n, x: \4 p. h- i! L
BigCapitalShip = 0.6, j- O/ `% A. f' b: O
damage = 1,
3 y0 d$ U6 T, x},{! @0 y. E/ Z) ]* S
Mothership = 0.6,( d' J. q7 E& K- F# m
damage = 1,2 L6 h$ [$ ?8 k3 u' k; v0 j+ t
},{: E5 C4 b9 F* m' @2 p
ResourceLarge = 0.6,- f- p1 p; G3 s
damage = 1,
4 s) k( z6 u- s6 i t})
% w$ e2 l$ y" V* l7 ssetAngles(NewWeaponType,00,-170,170,0,60)
, |: t% I9 P5 W$ c9 GsetMiscValues(NewWeaponType,1,0)3 o" R! R& ]0 u$ h
0 i$ U! X4 D. X' c) t6 D. L
战舰什么的被20mm炮弹击中基本是挠痒,可以把红色部分那些小数改成0(就是不攻击),当然只想打导弹的话可以把战斗机和护航艇后面的小数也改成0。
, L7 k: |% A( K+ h; a2 d
* n& O+ w! t5 ]. I然后就是修改舰船,攻击优先级只能修改舰船本身而不是某个炮台,上面修改的只是让你攻击敌人战舰的时候,防空炮会空闲下来打打飞机导弹神马的。, P" l3 {5 p1 Q% b0 J9 o( S
x:\homeworld2\data\ship\zgn_xxxship(小型、中型、大型从属舰/战术舰,巨型战术舰是zgn_hugeship)文件夹里,找到相应的"*.ship"文件:
" |' h. M! Q+ U. d找到"addAbility(NewShipType,"CanAttack",1,1,0,0,0.35,1.2,"Munition, Corvette, Fighter……"这一行,那一串数字后面的英文就是攻击优先级,越前面的优先级越高,Munition就是弹药(导弹)了。/ O0 R! e7 a2 O, J$ s
' O! x/ m. H" L$ i; A8 `8 _! x4 j2 W这样改有个弊端,就是你的战舰没有手动选择目标时,会自动从弹药的优先级开始往下搜索目标。当被导弹围攻时,如果不管它,就会出现导弹不清光,重型武器不会开火的情况。当然,多用框选多目标攻击就能解决。
! O" o: e2 |5 W: _" d
2 h7 e! t J2 j9 |2 V8 L, T多找找相关的教程,适当修改小型武器(比如57mm炮弹)的射速、射程、精度(往低的调)数据,还可以做出天女散花般的弹幕效果,很壮观。 |