中国战地资源网

 找回密码
 立即加入

扫一扫,访问微社区

搜索
查看: 83|回复: 1

【求助】如何制作地图上出现的武器包

[复制链接]

11

主题

112

帖子

100

威望

上尉

贡献
104
金币
-1

赞助勋章

发表于 4 天前 | 显示全部楼层 |阅读模式
7金币
本帖最后由 钢铁红星 于 2021-2-23 11:27 编辑

一些游戏模组地图上会出现一些武器,请问应该如何自制一个武器包出来?ps:就用原版战地2的武器来制作

最佳答案

查看完整内容

重新做一个kits文档,模型引用该步枪,举个例子 ObjectTemplate.create Kit PICKUP_GA762 ObjectTemplate.saveInSeparateFile 1 ObjectTemplate.kitType Engineer ObjectTemplate.aiTemplate Engineer ObjectTemplate.geometry galil762 ObjectTemplate.geometry.kit 0 ObjectTemplate.geometry.dropGeom 12 ObjectTemplate.networkableInfo KitInfo ObjectTemplate.setHasCollisionPhysics 1 ObjectTemplate.abilityRestoreRate 0 ...
此人暂时还没有个人签名~
回复

使用道具 举报

89

主题

653

帖子

250

威望

站长

Rank: 9Rank: 9Rank: 9

贡献
20
金币
796

赞助勋章

发表于 4 天前 | 显示全部楼层
重新做一个kits文档,模型引用该步枪,举个例子
ObjectTemplate.create Kit PICKUP_GA762
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.kitType Engineer
ObjectTemplate.aiTemplate Engineer
ObjectTemplate.geometry galil762
ObjectTemplate.geometry.kit 0
ObjectTemplate.geometry.dropGeom 12
ObjectTemplate.networkableInfo KitInfo
ObjectTemplate.setHasCollisionPhysics 1
ObjectTemplate.abilityRestoreRate 0.05
ObjectTemplate.abilityInVehicleRadius 7
ObjectTemplate.abilityInVehicleStrength 0.1
ObjectTemplate.abilityInVehicleMaterial 84
ObjectTemplate.unlockIndex 2
ObjectTemplate.cullRadiusScale 2.4

rem ---------------CollisionMesh----------------------
ObjectTemplate.collisionMesh small_collonly0
ObjectTemplate.mapMaterial 0 collision_material 76
ObjectTemplate.physicsType Point
rem ---------------/CollisionMesh---------------------

rem -------------------------------------
ObjectTemplate.addTemplate at_mine
ObjectTemplate.addTemplate idfpis_jericho941
ObjectTemplate.addTemplate galil762
ObjectTemplate.addTemplate ushgr_m26
ObjectTemplate.addTemplate c4_explosives
ObjectTemplate.addTemplate wrench
ObjectTemplate.addTemplate nsrif_crossbow
ObjectTemplate.addTemplate nsrif_grapplinghook
ObjectTemplate.addTemplate parachuteLauncher
rem -------------------------------------

ObjectTemplate.createComponent Ability
ObjectTemplate.ability.hasRepairingAbility 1

ObjectTemplate.createComponent AbilityHud
ObjectTemplate.abilityHud.healingSound S_Heal
ObjectTemplate.abilityHud.repairingSound S_Repair
ObjectTemplate.abilityHud.ammoSound S_Resupply

ObjectTemplate.createComponent VehicleHud
ObjectTemplate.vehicleHud.hudName                 "HUD_TEXT_MENU_SPAWN_KIT_ENGINEER"
ObjectTemplate.vehicleHud.miniMapIcon                "Ingame\Kits\Icons\kit_Engineer_outline.tga"
ObjectTemplate.vehicleHud.vehicleIcon                "Ingame\Kits\Icons\kit_Engineer.tga"
ObjectTemplate.vehicleHud.spottedIcon                 "Ingame\Player\Icons\Minimap\mini_Soldier.dds"
ObjectTemplate.vehicleHud.pantingSound                S_SprintBreath
ObjectTemplate.vehicleHud.injurySound                S_Injury
ObjectTemplate.vehicleHud.vehicleType                 7

ObjectTemplate.sprintStaminaDissipationFactor 0.2

rem ---BeginComp:HelpHud ---
ObjectTemplate.createComponent HelpHud
ObjectTemplate.HelpHud.helpStringKey "HUD_HELP_KIT_ENGINEER_inVehicle"
ObjectTemplate.HelpHud.helpSoundKey "HUD_HELP_KIT_ENGINEER_inVehicle"
rem ---EndComp ---

rem ---BeginComp:Radio ---
ObjectTemplate.createComponent Radio
ObjectTemplate.Radio.spottedMessage        "infantry_spotted"
rem ---EndComp ---
此人暂时还没有个人签名~
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即加入

本版积分规则

Archiver|禁闭室|bfmil

GMT+8, 2021-2-27 11:46 , Processed in 0.121679 second(s), 31 queries .

Powered by Discuz! X3.4

© 2009-2020, 阿里云计算

快速回复 返回顶部 返回列表