2.9.9.16 Turn Tail - Hotkey to drop equipped bags
2 2

13 posts in this topic

Did you ever run into a horde after shopping at the groceries?

 

Are you into B&E but unable to choose between the flatscreen and the piano?

 

Have you ever wondered how to easily access your inventory and get rid of that piano while frantically using your mouse to smash said horde?

 

If you can answer all three questions with 'yes' then this little script might just be the solution for you.

 

Description:

This mod adds a hotkey ( 'x' by default) to swiftly dump an equipped bag in order to reduce encumberance. It will only acknowledge bags and only those equipped in your hands or on your back. The order is Primary Hand -> Secondary Hand -> Back; one push for each item.

 

Installation:

1. Copy zip to the PZ root-directory, right click on the file and select 'Extract Here'.

2. Hit 'Yes' if asked to overwrite folders.

3. Delete zip.

 

Future Plans:

Probably a weight-flavoured system. Or even better menu-based which allows for dragging the order.

 

Known Issues:

Not working with .10 Desura build

TurnTail.zip

Share this post


Link to post
Share on other sites

What an awesome idea! I wanted a way to drop equipped bags when I'm suddenly surrounded mid loot-run!

 

I'm torn thinking that this should only drop primary and secondary "hand"-carried bags, and still force the player to go into the menus like normal to remove a backpack... the downside to strapping on a big overstuffed hiking pack? :)

 

At any rate, I love the concept and look forward to giving this a try. In fact, I'll be using this permanently, I think!

Share this post


Link to post
Share on other sites

Thanks guys. Got my bright moments i suppose. No more dying of hybris while looting.

 

still force the player to go into the menus like normal to remove a backpack... the downside to strapping on a big overstuffed hiking pack

I believe that would defeat the purpose of the hotkey. E.g. running around in the dark with weapon/flashlight as prim/sec hand. I made the action take double the time for the backpack though.

 

Also:

I ran into a problem when using it on the second floor of a building.

The bag appears above the player as if it was thrown onto the ceiling. You can still pick it up but it might be located on a wall or even outside the building hanging in mid-air and thus become unreachable.

 

Does anybody know about special issues with the z-coordinate?

Share this post


Link to post
Share on other sites

I use:

 

    self.character:getCurrentSquare():AddWorldInventoryItem(item, 0.0, 0.0, 0.0);

 

didn't have a complaint so far...

 

I thought that these aren't absolute coordinates but rather offsets on the current tile... but who knows :P

Share this post


Link to post
Share on other sites

Problem solved, new file is up. 

 

Offsets it is: I kept defining it a la x = getplayer():getx and inserted x/y/z into addworldinventoryitem(). Still wonder why it doesn't like the absolute z. Worked fine on the ground floor.

Share this post


Link to post
Share on other sites

I think the offsets are values from 0 to 1 so if your player is on the ground floor the Z of the item will be zero, but if you are on the second floor the offset will be z+1 and because the item is on the second floor already it will be moved to the floor above.

 

As I said afaiu the item takes the coordinates of tile it is spawned on (notice the "self.character:getCurrentSquare()") and offsets the item from there ;)

Share this post


Link to post
Share on other sites

Quick question, does this work for Desuras build of PZ? If it does can someone help me out because I can't get it to work. :(

Share this post


Link to post
Share on other sites

I fear it doesn't. Got some fancy errors as well that tell me nothing.

warning C7583: Initialization of uniform variables requires #version 120 or later

 

and a couple of

warning C7011: implicit cast from "int" to "float"

Share this post


Link to post
Share on other sites

Great addition.

First post here I believe and I wanted to make sure it was for a good reason.

This is a great idea.

Thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
2 2