Home » MODDING HQ 1.13 » Flugente's Magika Workshop » New feature: apply items to/take items from other persons
New feature: apply items to/take items from other persons[message #316634] Wed, 27 March 2013 22:56 Go to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
apply items to/take items from other persons

As it was requested a few times, and offers a few new reasonable possibilities, I made a new addition to the code. It is now possible to apply items to other persons. It works pretty easy: Put the item in the hand of a merc, rightclick and then hover with your mouse over another person, and leftclick to apply. Just like mining/picking up items etc..

This works with
  • drugs
  • clothes
  • canteens (not non-canteen like food items)
  • camo
  • gasmasks (if no gasmask is worn)(if no slot is free, one item is dropped).
  • bombs (really. With remote detonators and everything :transform: )
Other items would be possible too, but I have to check this on a case-to-case basis. I will however not allow reloading, as that would be an obvious exploit.

One can apply items to anybody. This includes the enemy. Against hostiles there is a chance to fail - the chance depends on
  • exp levels
  • dexterity
  • stealth trait (new trait system only)
  • out target' alert status
  • and most important of all, the weight of an item.
Sneaking up behind someone and injecting a syringe into him is relatively easy (poison drug, anyone?). Running headlong into the enemy and trying to put a claymore into his pockets is relatively hard.

Pics:
http://i49.tinypic.com/2dvvddh.jpg
During a furious firefight, Stephen's only chance of survival lay in the hands or Raider. Let's hope its the right syringe...

http://i49.tinypic.com/34ipkpz.jpg
Apparently it was. A few turns later, Stephen is out of immediate danger.

This is in the trunk as of r5962 and GameDir r1631. Note that the GameDir is required for this, as it has new cursor icons (thanks to Thor). With out them, your game will crash when attempting this.

Significant update 1: As of r6033, we can now access the inventory of other mercs. It works just like stealing (it is stealing - taking items from friends is stealing from someone who's ok with it :shake: )

http://i44.tinypic.com/2jagu4i.jpg
Raider accesses Ira's inventory. Note that he still has to pay an AP cost, just like if he were stealing.

So now you can not only apply a gasmask to a conscious merc, you can also take it from him in he first place.

[Updated on: Mon, 29 April 2013 00:56] by Moderator

Report message to a moderator

Captain

Re: New feature: apply items to other persons[message #316638] Wed, 27 March 2013 23:15 Go to previous messageGo to next message
Thor is currently offline Thor

 
Messages:423
Registered:February 2007
Location: Belgium
Perfect, another big step taken... At least an unconscious merc isn't helpless anymore when his buddies are around Wink

And the bomb-feature is very interesting... I feel tiny sticky C4 bombs coming up... which brings along new mergeable items... Duct tape will get the value it deserves! (By the way, can you bind prisoners with duct tape?)

[Updated on: Wed, 27 March 2013 23:22] by Moderator

Report message to a moderator

Master Sergeant
Re: New feature: apply items to other persons[message #316640] Wed, 27 March 2013 23:36 Go to previous messageGo to next message
Thor is currently offline Thor

 
Messages:423
Registered:February 2007
Location: Belgium
Something else I have wondered about many times... How about a feature to take items from an unconscious merc. Should be similar to stealing, but it doesn't work on your own mercs. Weapons, medikits, etc. Such a feature would have been handy on several occasions... especially if the one with the precious regeneration booster is down..^^

[Updated on: Wed, 27 March 2013 23:38] by Moderator

Report message to a moderator

Master Sergeant
Re: New feature: apply items to other persons[message #316643] Thu, 28 March 2013 00:18 Go to previous messageGo to next message
Sam Hotte

 
Messages:1966
Registered:March 2009
Location: Middle of Germany
:thumbsup:

A few questions if you don't mind, Flug:

1. Are these instant actions or more like current bandaging, taking more time, possibly extending over multiple turns? (Description quite sounds like instant action, but wanna make sure ..)

2. If instant action: could different amount of APs be assigned to the different tasks? Like, taking off somebody's helmet, remove a face gear, put on gas mask and helmet again on top might take up more time than jamming an instant-ready syringe into one's thigh, or so.

3. Just out of plain curiosity: What situation in game had you in mind allowing for applying clothes (and armor?) to somebody else?

And finally seconding Thor's suggestion about "stealing" things from unconscious mercs. Would be very helpful being able to pick up the gas mask from the unconscious before applying it to his face (because usually you do not carry a second gas mask around for the others, do you ... )

Report message to a moderator

Sergeant Major
Re: New feature: apply items to other persons[message #316648] Thu, 28 March 2013 00:51 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
Bombs already work - its just very hard, as weight is factored in. Duct tape can be used to take prisoners if you set the Itemflag in the xml (copy it from handcuffs).

These actions are instant. Multi-turn ould be possible, but rather useless on enemies.

3.: Apart from dressing up other people... none. Though one could argue that it comes in handy if you want to smuggle EPC through enemy-occupied sectors - dress them up.

Taking stuff from other people... not sure how difficult that would be. On the plus-side, it might give a boost to the ancient 'thief'-trait (in prehistoric coe times, 'Stealthy' was 'Thieving').

Report message to a moderator

Captain

Re: New feature: apply items to other persons[message #316649] Thu, 28 March 2013 00:54 Go to previous messageGo to next message
Gambigobilla

 
Messages:693
Registered:July 2008
Is there any chance of coding a "heartbeat detonator"? I would really love giving Maddog a machete and c4 with heartbeat detonator. I never really liked the guy. With this he can get a real use.

Die for the Emperor or die trying!

Report message to a moderator

First Sergeant
Re: New feature: apply items to other persons[message #316650] Thu, 28 March 2013 00:56 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
I like your approach to people. I'll put that in my mod Wink

That'll teach them Khornates to charge my guardsmen.

Report message to a moderator

Captain

Re: New feature: apply items to other persons[message #316651] Thu, 28 March 2013 01:05 Go to previous messageGo to next message
Sam Hotte

 
Messages:1966
Registered:March 2009
Location: Middle of Germany
Thx, Flug.
Could you pls. say something about 2.? Do all these actions have same AP cost or could there be different AP costs for different appliances?
TIA.

About taking stuff from non-enemies: In my simplicity from being non-coder, i'd be wishing that all the code from current 'steal from enemy' could be re-used ... Smile

Edit: How about a Five Point Palm Exploding Heart Technique? Very Happy. SCNR.

[Updated on: Thu, 28 March 2013 01:09] by Moderator

Report message to a moderator

Sergeant Major
Re: New feature: apply items to other persons[message #316652] Thu, 28 March 2013 01:09 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
The AP cost is defined in APBPConstants.ini an is the same for all. This can be easily codewise to specific costs, but not now. I'll wait if any more reasonable proposals for items to use come up.

Report message to a moderator

Captain

Re: New feature: apply items to other persons[message #316653] Thu, 28 March 2013 01:13 Go to previous messageGo to next message
Sam Hotte

 
Messages:1966
Registered:March 2009
Location: Middle of Germany
Ok, thx again. :super:

Report message to a moderator

Sergeant Major
Re: New feature: apply items to other persons[message #316654] Thu, 28 March 2013 01:45 Go to previous messageGo to next message
grim is currently offline grim

 
Messages:344
Registered:July 2006
Location: France
Another great feature, thank you Flugente!

Report message to a moderator

Master Sergeant
Re: New feature: apply items to other persons[message #316661] Thu, 28 March 2013 06:57 Go to previous messageGo to next message
Clarkew is currently offline Clarkew

 
Messages:75
Registered:May 2011
Location: East Texas, USA
This is all kinds of awesome! I've wanted this feature for a very long time and never even knew it Smile

Report message to a moderator

Corporal
Re: New feature: apply items to other persons[message #316802] Sat, 30 March 2013 17:36 Go to previous messageGo to next message
PasHancock is currently offline PasHancock

 
Messages:720
Registered:February 2011
Location: Estonia,Tallinn
doesnt work on Dying mercs D:
just tried to save my Dying merc today with Regen. Boost and it didnt work

Report message to a moderator

First Sergeant
Re: New feature: apply items to other persons[message #316804] Sat, 30 March 2013 17:54 Go to previous messageGo to next message
Sam Hotte

 
Messages:1966
Registered:March 2009
Location: Middle of Germany
I'd say this works as intended then. IMHO player shouldn't be able to revive a DYING merc with a regen. booster.

Report message to a moderator

Sergeant Major
Re: New feature: apply items to other persons[message #316809] Sat, 30 March 2013 18:58 Go to previous messageGo to next message
PasHancock is currently offline PasHancock

 
Messages:720
Registered:February 2011
Location: Estonia,Tallinn
with this new feature, you cant plant Mines

Report message to a moderator

First Sergeant
Re: New feature: apply items to other persons[message #316810] Sat, 30 March 2013 19:02 Go to previous messageGo to next message
Thor is currently offline Thor

 
Messages:423
Registered:February 2007
Location: Belgium
Walking bombs, you mean? You can plant mines already... Or do I misunderstand?

Report message to a moderator

Master Sergeant
Re: New feature: apply items to other persons[message #316811] Sat, 30 March 2013 19:02 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
Regarding planting bombs/mines: Already fixed in r5964.

Report message to a moderator

Captain

Re: New feature: apply items to other persons[message #316820] Sat, 30 March 2013 22:16 Go to previous messageGo to next message
merc05 is currently offline merc05

 
Messages:90
Registered:January 2013
Using plant mine/bomb on your own mercs now causes spawning an additional copy of the item on the ground. Also using canteen displays a message "[merc] could not apply canteen to [merc]".

Nice feature BTW, I thought of Fallout games when this came out.

Report message to a moderator

Corporal 1st Class
Re: New feature: apply items to other persons[message #316895] Mon, 01 April 2013 19:39 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
Drugs do work when applied, but for some reason, in turnbased mode they didn't adjust correctly - fixed in r5970.

I didn't observe an instance where items were cloned, can you elaborate?

Report message to a moderator

Captain

Re: New feature: apply items to other persons[message #316933] Tue, 02 April 2013 15:30 Go to previous messageGo to next message
merc05 is currently offline merc05

 
Messages:90
Registered:January 2013
Regarding the cloned items it seems fixed now and I can only do this in old save games now. It happened when attempting to plant an explosive on a character from your own team. Instead it created the copy of an item under the target's feet. But like I wrote it seems fixed now - thanks. While toying with this I found one more problem with explosives though. Arming them in inventory doesn't subtract APs when in turn based mode.

I still have the issue with being unable to use a canteen on another character. This is only true when the food option is turned on.

Report message to a moderator

Corporal 1st Class
Re: New feature: apply items to other persons[message #316994] Wed, 03 April 2013 21:32 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
merc05
I still have the issue with being unable to use a canteen on another character. This is only true when the food option is turned on.
Fixed in r5979.

Report message to a moderator

Captain

Re: New feature: apply items to other persons[message #318161] Mon, 29 April 2013 00:53 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
Significant update: As of r6033, we can now access the inventory of other mercs. It works just like stealing (it is stealing - taking items from friends is stealing from someone who's ok with it :shake: )

http://i44.tinypic.com/2jagu4i.jpg
Raider accesses Ira's inventory. Note that he still has to pay an AP cost, just like if he were stealing.

So now you can not only apply a gasmask to a conscious merc, you can also take it from him in the first place. Or take regen boosters from your injured doctor to heal him.

Report message to a moderator

Captain

Re: New feature: apply items to other persons[message #318162] Mon, 29 April 2013 01:19 Go to previous messageGo to next message
grim is currently offline grim

 
Messages:344
Registered:July 2006
Location: France
Wonderful! Congratlations Flugente, this is a great enhancement to the feature.
Is it possible to steal from the ennemy with the droplist too?

Report message to a moderator

Master Sergeant
Re: New feature: apply items to other persons[message #318166] Mon, 29 April 2013 02:52 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
Well yes... has always been. I merely allowed it to work on our mercs too. With one difference being that you always get the full list, not only when the other person is unconscious.

Report message to a moderator

Captain

Re: New feature: apply items to other persons[message #318172] Mon, 29 April 2013 10:12 Go to previous messageGo to next message
grim is currently offline grim

 
Messages:344
Registered:July 2006
Location: France
My apologies, i never noticed that. I only tried to steal from the conscious, once or twice, getting the weapon in hand. Hmm, could be part of a new hint...

Report message to a moderator

Master Sergeant
Re: New feature: apply items to other persons[message #318211] Mon, 29 April 2013 20:48 Go to previous messageGo to next message
merc05 is currently offline merc05

 
Messages:90
Registered:January 2013
Thanks for another great feature! If I could have a small request about fine tuning it so that the merc cannot use steal on himself. Right now when standing on a pile of items and trying to use the hand icon to pick them up the merc instead does the stealing on himself.

And this one is kinda funny... A mercenary with the "dauntless" character trait opens fire on any merc who tries to take items from any other merc via this feature. Strange...

Report message to a moderator

Corporal 1st Class
Re: New feature: apply items to other persons[message #318239] Tue, 30 April 2013 00:42 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
Fixed the stealing from yourself-issue in 6038. I could not reproduce the Dauntless-issue, however. More input welcome Smile

Report message to a moderator

Captain

Re: New feature: apply items to other persons[message #318354] Wed, 01 May 2013 16:51 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
Fixed the issue with mercs firing at the merc stealing in 6046. It was a consequence of my bending of the stealing code. what happened was that other mercs observed the stealing (which is an attack codewise), and then retaliated Smile

Report message to a moderator

Captain

Re: New feature: apply items to other persons[message #318403] Wed, 01 May 2013 20:48 Go to previous messageGo to next message
merc05 is currently offline merc05

 
Messages:90
Registered:January 2013
Thank you, sir! I guess I messed it up a bit when I mentioned that the dauntless trait was causing this, as my two mercs who first expressed this behaviour had it. Sorry.

Anyway, if you want more feedback on this feature I have noticed these (not bugs but rather exploits/cheats that can be done with friendly stealing):

1. Stealing from EPC's is possible. I could steal i.e. the cash from American tourists.
2. Nails' sacred vest can be easily removed with this.

Report message to a moderator

Corporal 1st Class
Re: New feature: apply items to other persons[message #318405] Wed, 01 May 2013 20:53 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
1. Hmmkay, that's bad.
2. Gah. Heresy! I pledge to abide the codex!

Edit: Both fixed in r6048.

[Updated on: Wed, 01 May 2013 23:14] by Moderator

Report message to a moderator

Captain

Re: New feature: apply items to other persons[message #318480] Thu, 02 May 2013 12:43 Go to previous messageGo to next message
krux is currently offline krux

 
Messages:62
Registered:June 2011
Thanks for the improvements!

Something though that I've noticed, and I suppose it's an old known bug that can't be fix (else it would have been), and it's only semi-related to this thread, but..

Sometimes you can't steal from unconscious enemies that are lying behind transparent objects like grass and walls etc. (at least that is what I think causes it). Would this be possible to fix?

Report message to a moderator

Corporal
Re: New feature: apply items to other persons[message #318492] Thu, 02 May 2013 16:41 Go to previous messageGo to next message
Sam Hotte

 
Messages:1966
Registered:March 2009
Location: Middle of Germany
From my observation, this is caused by the unconscious one has been standing on a tile, which lacks accessible neighbouring tiles to enable stealing:

X1 X2 X3
X4 EE X5
OO X6 YY

Your merc in tile YY punched enemy in EE to ground. Due to inaccessible tiles X1 - X6 his upper body fells to empty tile OO. For stealing you need to go into tile X2, X4, X5 or X6 - which you cannot.

Something like this.

Report message to a moderator

Sergeant Major
Re: New feature: apply items to other persons[message #318504] Thu, 02 May 2013 18:34 Go to previous messageGo to next message
krux is currently offline krux

 
Messages:62
Registered:June 2011
I don't think that's the cause. If all tiles were inaccessible I wouldn't have expected to be able to steal from him. And this has happened to me when the enemy was standing on an open field, might have been one rock tile next to him, but not all of them.

Report message to a moderator

Corporal
Re: New feature: apply items to other persons[message #327766] Fri, 08 November 2013 03:24 Go to previous messageGo to next message
Bananarepublic is currently offline Bananarepublic

 
Messages:39
Registered:October 2013
On gamedir 1704 (UC 1.13, haven't checked vanilla), when i try giving a canteen to a standing merc, the canteen gets used and the "aah.." sound is played, but no energy is recovered on the target.

Report message to a moderator

Private 1st Class
Re: New feature: apply items to other persons[message #327884] Sun, 10 November 2013 22:23 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
It works for me on up-to-date exe and GameDir... I fixed a few errors of this feature in the meantime (1704 is a few months old). Unless that also occurs for you with current exes, nothing I can do about it.

Report message to a moderator

Captain

Re: New feature: apply items to other persons[message #327990] Tue, 12 November 2013 03:44 Go to previous message
Bananarepublic is currently offline Bananarepublic

 
Messages:39
Registered:October 2013
I see, i thought that may be it. Thanks Flugente.

Report message to a moderator

Private 1st Class
Previous Topic: New feature: Class specific gun/item choices
Next Topic: New feature: Bombs can now be armed in the inventory, and dropped/thrown afterwards
Goto Forum:
  


Current Time: Fri Apr 19 07:43:11 GMT+3 2024

Total time taken to generate the page: 0.01792 seconds