Page 1 of 1

[Code] Kits

Posted: 2010-02-25 08:07
by HangMan_
Just to show everyone that we are still alive, here are some sneak peaks of the kit code i've been working on today. So far just showing off the nz_officer_alt and the nz_rifleman. Should give you guys a taste of whats going to be in the kits. Enjoy :D

Code: Select all

ObjectTemplate.create Kit nz_officer_alt
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.setNetworkableInfo KitInfo
ObjectTemplate.kitType Specops
ObjectTemplate.aiTemplate Specops
ObjectTemplate.geometry nz_kits
ObjectTemplate.geometry.kit 4
ObjectTemplate.geometry.dropGeom 16
ObjectTemplate.setHasCollisionPhysics 1
ObjectTemplate.setCollisionMesh kitcol
ObjectTemplate.dropHeadwear helmet
ObjectTemplate.cullRadiusScale 8

rem -------------------------------------
ObjectTemplate.addTemplate kni_knife
ObjectTemplate.addTemplate uspis_P226
ObjectTemplate.addTemplate adfrif_f88s_optic
ObjectTemplate.addTemplate USHGR_M67
ObjectTemplate.addTemplate radio
ObjectTemplate.addTemplate hgr_smoke_signalpurple
ObjectTemplate.addTemplate SIMRAD
ObjectTemplate.addTemplate medikit_dressing_3
rem -------------------------------------

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_OFFICER_NZ_LIMITED"
ObjectTemplate.vehicleHud.miniMapIcon		"Ingame\Kits\Icons\kit_Officer_outline.tga"
ObjectTemplate.vehicleHud.vehicleIcon		"Ingame\Kits\Icons\kit_Officer.tga"
ObjectTemplate.vehicleHud.spottedIcon 		"Ingame\GeneralIcons\empty.tga"
ObjectTemplate.vehicleHud.pantingSound		S_SprintBreath
ObjectTemplate.vehicleHud.injurySound		S_Injury
ObjectTemplate.vehicleHud.vehicleType 		7

Code: Select all

ObjectTemplate.create Kit nz_rifleman
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.setNetworkableInfo KitInfo
ObjectTemplate.kitType Support
ObjectTemplate.aiTemplate Support
ObjectTemplate.geometry nz_kits
ObjectTemplate.geometry.kit 0
ObjectTemplate.geometry.dropGeom 13
ObjectTemplate.setHasCollisionPhysics 1
ObjectTemplate.setCollisionMesh kitcol
ObjectTemplate.dropHeadwear helmet
ObjectTemplate.abilityRestoreRate 0.15
ObjectTemplate.abilityInVehicleRadius 0
ObjectTemplate.abilityInVehicleStrength 0.0
ObjectTemplate.abilityInVehicleMaterial 91
ObjectTemplate.cullRadiusScale 8	

rem -------------------------------------
ObjectTemplate.addTemplate kni_knife
ObjectTemplate.addTemplate klappspaten
ObjectTemplate.addTemplate adfrif_f88s_acog
ObjectTemplate.addTemplate USHGR_M67
ObjectTemplate.addTemplate hgr_smoke
ObjectTemplate.addTemplate ammokit
ObjectTemplate.addTemplate binocular
ObjectTemplate.addTemplate medikit_dressing
ObjectTemplate.addTemplate hgr_incendiary

rem -------------------------------------

ObjectTemplate.createComponent Ability
ObjectTemplate.ability.hasAmmoAbility 1
ObjectTemplate.ability.hasRepairingAbility 1

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

ObjectTemplate.createComponent VehicleHud
ObjectTemplate.vehicleHud.hudName 		"HUD_TEXT_MENU_SPAWN_KIT_RIFLEMANNZ"
ObjectTemplate.vehicleHud.miniMapIcon		"Ingame\Kits\Icons\kit_Light_Scope_outline.tga"
ObjectTemplate.vehicleHud.vehicleIcon		"Ingame\Kits\Icons\kit_Light_Scope.tga"
ObjectTemplate.vehicleHud.spottedIcon 		"Ingame\GeneralIcons\empty.tga"
ObjectTemplate.vehicleHud.pantingSound		S_SprintBreath
ObjectTemplate.vehicleHud.injurySound		S_Injury
ObjectTemplate.vehicleHud.vehicleType 		7

Re: [Code] Kits

Posted: 2010-02-25 08:21
by UberWazuSoldier
Good to see it coming together!

Re: [Code] Kits

Posted: 2010-02-25 08:23
by Gunner_downer
Nice work hangman :)

Re: [Code] Kits

Posted: 2010-02-25 08:26
by HangMan_
Cheers guys :D I'll try get some more up soon.

Re: [Code] Kits

Posted: 2010-03-06 21:49
by Sniper77shot
:) looks good for code, hopefully you will learn more about coding

Re: [Code] Kits

Posted: 2010-03-11 04:10
by HangMan_
NZ Support

Code: Select all

ObjectTemplate.create Kit nz_support
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.setNetworkableInfo KitInfo
ObjectTemplate.kitType Support
ObjectTemplate.aiTemplate Support
ObjectTemplate.geometry nz_kits
ObjectTemplate.geometry.kit 5
ObjectTemplate.geometry.dropGeom 14
ObjectTemplate.setHasCollisionPhysics 1
ObjectTemplate.setCollisionMesh kitcol
ObjectTemplate.dropHeadwear helmet
ObjectTemplate.abilityRestoreRate 0.15
ObjectTemplate.abilityInVehicleRadius 0
ObjectTemplate.abilityInVehicleStrength 0
ObjectTemplate.abilityInVehicleMaterial 84
ObjectTemplate.cullRadiusScale 8

rem -------------------------------------
ObjectTemplate.addTemplate kni_knife
ObjectTemplate.addTemplate klappspaten
ObjectTemplate.addTemplate cflmg_c9
ObjectTemplate.addTemplate cflmg_c9deployed
ObjectTemplate.addTemplate hgr_smoke
ObjectTemplate.addTemplate binocular
ObjectTemplate.addTemplate medikit_dressing
ObjectTemplate.addTemplate hgr_incendiary
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_SUPPORT_USA_LIMITED"
ObjectTemplate.vehicleHud.miniMapIcon		"Ingame\Kits\Icons\kit_Heavy_Assault_outline.tga"
ObjectTemplate.vehicleHud.vehicleIcon		"Ingame\Kits\Icons\kit_Heavy_Assault.tga"
ObjectTemplate.vehicleHud.spottedIcon 		"Ingame\GeneralIcons\empty.tga"
ObjectTemplate.vehicleHud.pantingSound		S_SprintBreath
ObjectTemplate.vehicleHud.injurySound		S_Injury
ObjectTemplate.vehicleHud.vehicleType 		7
NZ Rifleman AT

Code: Select all

ObjectTemplate.create Kit nz_riflemanat
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.setNetworkableInfo KitInfo
ObjectTemplate.kitType AT
ObjectTemplate.aiTemplate AT
ObjectTemplate.geometry nz_kits_2
ObjectTemplate.geometry.kit 5
ObjectTemplate.geometry.dropGeom 11
ObjectTemplate.setHasCollisionPhysics 1
ObjectTemplate.setCollisionMesh kitcol
ObjectTemplate.abilityRestoreRate 0.15
ObjectTemplate.abilityInVehicleRadius 0
ObjectTemplate.abilityInVehicleStrength 0.0
ObjectTemplate.abilityInVehicleMaterial 84
ObjectTemplate.cullRadiusScale 8

rem -------------------------------------
ObjectTemplate.addTemplate kni_knife
ObjectTemplate.addTemplate klappspaten
ObjectTemplate.addTemplate adfrif_f88s_acog
ObjectTemplate.addTemplate idflat_m72
ObjectTemplate.addTemplate hgr_smoke
ObjectTemplate.addTemplate binocular
ObjectTemplate.addTemplate medikit_dressing
ObjectTemplate.addTemplate hgr_incendiary
rem -------------------------------------

ObjectTemplate.createComponent Ability
ObjectTemplate.ability.hasRepairingAbility 1

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

ObjectTemplate.createComponent VehicleHud
ObjectTemplate.vehicleHud.hudName 		"HUD_TEXT_MENU_SPAWN_KIT_ATUS"
ObjectTemplate.vehicleHud.miniMapIcon		"Ingame\Kits\Icons\kit_AT_outline.tga"
ObjectTemplate.vehicleHud.vehicleIcon		"Ingame\Kits\Icons\kit_AT.tga"
ObjectTemplate.vehicleHud.spottedIcon 		"Ingame\GeneralIcons\empty.tga"
ObjectTemplate.vehicleHud.pantingSound		S_SprintBreath
ObjectTemplate.vehicleHud.injurySound		S_Injury
ObjectTemplate.vehicleHud.vehicleType 		7

Re: [Code] Kits

Posted: 2010-03-11 04:17
by Sniper77shot
That is some good coding, :D

Re: [Code] Kits

Posted: 2010-03-11 10:45
by Wakain
klappspaten? :p
either german or norwegian, though the latter like to put in random dots and stripes

nzdf is going international :p

Re: [Code] Kits

Posted: 2010-03-11 10:50
by H.sta
Klappspaten is German... and it is the name of the type of shovel, it means folding shovel.

Re: [Code] Kits

Posted: 2010-03-11 12:35
by sylent/shooter
awesome job :) Can't wait to run a test eventually on my map

Re: [Code] Kits

Posted: 2010-03-11 17:14
by Wakain
Klappspaten is German... and it is the name of the type of shovel, it means folding shovel.
lol I know man, I just thought it was odd that it's coded in german