[CSM] Make kits pickable by only one team

Ask questions, discuss ideas, get answers

Make kits pickable by only one team

Postby Classical Modder » Mon Nov 27, 2017 6:48 am

So I've tried making kits that can only be picked by one team.

The basic goal is to have the kit spawn a PCO which surrounds it at all times. One team has a deathbubble add templated to them at all times allowing them to destroy the protective PCO that the kit spawns in order to pick it up. The other team has no deathbubble add templated to their soldiers so they cannot have access to the kit.

This has been tried in practice. The result is a CTD when picking up the kit with an add templated PCO.

So it seems PCOs themselves cannot be added to the kit directly but to kit parts rather.

Does anyone have a solution to add an object that would block the access to one team only?
{SoH} Clan Leader // http://sohclan.forumotion.com/
See my Strasbourg map project here.
GSC: diamondback67
Steam: diamondback67
Classical Modder
 
Posts: 365
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada

Re: Make kits pickable by only one team

Postby Swaffy » Wed Nov 29, 2017 2:46 am

Make a chair (visible mesh) into a PCO and use teamOnVehicle on its spawner to set the team, human player enters PCO and "fires". The projectile contains an object spawner that spawns the weapon kit. Profit?
You can add other FireArms with different keys for setInputFire so you can spawn other kits, if you want that. You can even use PIMenuSelect1 (through 6).

Maybe give the chair a texture that is unique so you can tell it is meant to spawn kits.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Image
User avatar
Swaffy
 
Posts: 1666
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Make kits pickable by only one team

Postby Classical Modder » Wed Nov 29, 2017 6:19 pm

Swaffy wrote:Make a chair (visible mesh) into a PCO and use teamOnVehicle on its spawner to set the team, human player enters PCO and "fires". The projectile contains an object spawner that spawns the weapon kit. Profit?
You can add other FireArms with different keys for setInputFire so you can spawn other kits, if you want that. You can even use PIMenuSelect1 (through 6).

Maybe give the chair a texture that is unique so you can tell it is meant to spawn kits.


Good idea but when the kit is spawned from the projectile, it can still be picked up by both teams right?
{SoH} Clan Leader // http://sohclan.forumotion.com/
See my Strasbourg map project here.
GSC: diamondback67
Steam: diamondback67
Classical Modder
 
Posts: 365
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada

Re: Make kits pickable by only one team

Postby freddy » Fri Dec 01, 2017 1:21 am

First if you block the kit with some object (building) that stop every team from reaching it.

Then you can use a vehicle (dummy) that only one team can enter.

Then you can set the
"ObjectTemplate.setSoldierExitLocation -1.5/0/-0.8 0/0/0" to match the coordinates where the kit is

Dunno what you need it for, but that was all i could come up with right now.
User avatar
freddy
 
Posts: 1195
Joined: Sun Oct 18, 2009 4:58 pm

Re: Make kits pickable by only one team

Postby Classical Modder » Fri Dec 01, 2017 4:52 am

freddy wrote:First if you block the kit with some object (building) that stop every team from reaching it.

Then you can use a vehicle (dummy) that only one team can enter.

Then you can set the
"ObjectTemplate.setSoldierExitLocation -1.5/0/-0.8 0/0/0" to match the coordinates where the kit i
Dunno what you need it for, but that was all i could come up with right now.


Again, when the soldier from the team that gets the kit dies after having picked up the kit, the kit can still be picked up by the opposite team. I think the only solution is to add template a death bubble to a kit part that affects only one team, but this is a bit extreme IMO.
{SoH} Clan Leader // http://sohclan.forumotion.com/
See my Strasbourg map project here.
GSC: diamondback67
Steam: diamondback67
Classical Modder
 
Posts: 365
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada

Re: Make kits pickable by only one team

Postby Swaffy » Fri Dec 01, 2017 11:55 pm

Maybe you can use the Hold command on the spawner? I never tried that. Then have the kit fall through the world. My BGA program isn't starting (until I restart my PC then it will run) but I can provide the line that causes kits to fall through map
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Image
User avatar
Swaffy
 
Posts: 1666
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Make kits pickable by only one team

Postby Classical Modder » Sat Dec 02, 2017 11:24 pm

Swaffy wrote:Maybe you can use the Hold command on the spawner? I never tried that. Then have the kit fall through the world. My BGA program isn't starting (until I restart my PC then it will run) but I can provide the line that causes kits to fall through map


There is a command that causes kits to fall through the map? Interesting. I'd like to know what it is!
{SoH} Clan Leader // http://sohclan.forumotion.com/
See my Strasbourg map project here.
GSC: diamondback67
Steam: diamondback67
Classical Modder
 
Posts: 365
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada

Re: Make kits pickable by only one team

Postby freddy » Sun Dec 03, 2017 6:49 am

Apache Thunder discovered it, i think it was "ObjectTemplate.hasCollisionPhysics 0" or "ObjectTemplate.hasResponsePhysics 0"

It is mentioned in some thread on this forum.
User avatar
freddy
 
Posts: 1195
Joined: Sun Oct 18, 2009 4:58 pm


Return to 1942 Modding Discussion

Who is online

Users browsing this forum: No registered users and 7 guests

cron