Armored soldiers

Ask questions, discuss ideas, get answers

Re: Armored soldiers

Postby Apache Thunder » Fri Nov 06, 2009 6:28 am

Well you can make special kits that have spawners addTemplated to kitparts. Those spawners could then spawn special PCO objects (with dummy engines and such so you can make them stick to the spawner via holdObject) and have those PCOs absorb a certain amount of direct projectile damage before they die off exposing the soldier. It won't protect you from explosions however. But this is more realistic that way....since body armor doesn't excactly help when a granade blows up right next to you. :P
ImageImageImage

I have cameras in your head!
User avatar
Apache Thunder
 
Posts: 1195
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA

Re: Armored soldiers

Postby freddy » Fri Nov 06, 2009 12:48 pm

one could build a "rechargable" shield!?
User avatar
freddy
 
Posts: 1186
Joined: Sun Oct 18, 2009 4:58 pm

Re: Armored soldiers

Postby LightSpeed/// » Fri Nov 06, 2009 11:33 pm

Apache Thunder wrote:Well you can make special kits that have spawners addTemplated to kitparts. Those spawners could then spawn special PCO objects (with dummy engines and such so you can make them stick to the spawner via holdObject) and have those PCOs absorb a certain amount of direct projectile damage before they die off exposing the soldier. It won't protect you from explosions however. But this is more realistic that way....since body armor doesn't excactly help when a granade blows up right next to you. :P

except for dragon skin
with that stuff on you can lay on a grenade and live, you will have a bruise however
AKA WhatThe
LightSpeed///
 
Posts: 44
Joined: Sun Oct 18, 2009 3:06 pm

Re: Armored soldiers

Postby Apache Thunder » Sat Nov 07, 2009 1:00 am

freddy wrote:one could build a "rechargable" shield!?



Yes. Simply code the spawners to respawn the PCO. You can also attach a health depot that slowly heals it over time. ;)
ImageImageImage

I have cameras in your head!
User avatar
Apache Thunder
 
Posts: 1195
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA

Re: Armored soldiers

Postby Classical Modder » Wed Jan 04, 2017 4:18 am

Apache Thunder wrote:Well you can make special kits that have spawners addTemplated to kitparts. Those spawners could then spawn special PCO objects (with dummy engines and such so you can make them stick to the spawner via holdObject) and have those PCOs absorb a certain amount of direct projectile damage before they die off exposing the soldier. It won't protect you from explosions however. But this is more realistic that way....since body armor doesn't excactly help when a granade blows up right next to you. :P


I know this is an old thread, but trying your method doesn't work. When I addTemplate the spawner to the kit part (in my case, US_Hip_Pack), nothing appears. But when I add the PCO itself to it directly, it shows up, but is not destroyable... This is my code, taken from my map's TDM folder OST.con:

ObjectSpawnTemplates.con (relevant code is in red)

ObjectTemplate.create ObjectSpawner hp50spawner
ObjectTemplate.setObjectTemplate 2 healthpack_50
ObjectTemplate.setObjectTemplate 1 healthpack_50
ObjectTemplate.MinSpawnDelay 60
ObjectTemplate.MaxSpawnDelay 80
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 45
ObjectTemplate.Distance 40
ObjectTemplate.DamageWhenLost 10

ObjectTemplate.create ObjectSpawner sniperspawner
ObjectTemplate.setObjectTemplate 2 germanelite_scout
ObjectTemplate.setObjectTemplate 1 germanelite_scout
ObjectTemplate.MinSpawnDelay 60
ObjectTemplate.MaxSpawnDelay 80
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 45
ObjectTemplate.Distance 40
ObjectTemplate.DamageWhenLost 10

ObjectTemplate.Active GermanSoldier
ObjectTemplate.AddTemplate hpdestroyer
ObjectTemplate.setPosition 0/0/0

ObjectTemplate.create SupplyDepot hpdestroyer
ObjectTemplate.radius 1
ObjectTemplate.team 0
ObjectTemplate.workOnVehicles 1
ObjectTemplate.workOnSoldiers 0
ObjectTemplate.AddVehicleType healthpack_50 -1 -48 0
ObjectTemplate.AddAmmoType 0 -1 -48 0

ObjectTemplate.Active USSoldier
ObjectTemplate.AddTemplate hpdestroyer
ObjectTemplate.setPosition 0/0/0

ObjectTemplate.Active US_Hip_Pack
ObjectTemplate.AddTemplate armorspawn
ObjectTemplate.setPosition -1.4/0.4/0

ObjectTemplate.create ObjectSpawner armorspawn
ObjectTemplate.setObjectTemplate 2
armor_vest
ObjectTemplate.MinSpawnDelay 25
ObjectTemplate.MaxSpawnDelay 35
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 60
ObjectTemplate.Distance 0
ObjectTemplate.DamageWhenLost 0
ObjectTemplate.holdObject 1
ObjectTemplate.setTeam 2


The PCO highlighted in blue in the "armorspawn" spawner has the following Objects.con code:

ObjectTemplate.create PlayerControlObject armor_vest
ObjectTemplate.networkableInfo armor_vestBodyInfo
ObjectTemplate.cullRadiusScale 4.0
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.geometry briefcase_m1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.explosionRadius 0
ObjectTemplate.HasArmor 1
ObjectTemplate.HitPoints 50
ObjectTemplate.MaxHitPoints 50
ObjectTemplate.Material 45
ObjectTemplate.timetoliveafterdeath 0
ObjectTemplate.setVehicleCategory VCLand
ObjectTemplate.setVehicleIcon "Empty.dds"
ObjectTemplate.setMinimapIcon "Empty.dds"
ObjectTemplate.setPcoId 0

Network.con:

NetworkableInfo.createNewInfo armor_vestBodyInfo
NetworkableInfo.setPredictionMode PMLinear
{SoH} Clan Leader // http://sohclan.forumotion.com/
See my Strasbourg map project here.
GSC: diamondback67
Steam: diamondback67
Classical Modder
 
Posts: 360
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada


Return to 1942 Modding Discussion

Who is online

Users browsing this forum: Bing [Bot] and 17 guests

cron