Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Random Image
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Who's Online
25 user(s) are online (14 user(s) are browsing Forum)

Members: 0
Guests: 25

more...
Collapse/Expand Donations
Monthly costs: -30€
Income (ads): +5€
Donations (last month): +10€

Current balance: -50€
(last updated 06/2019)

Please make a donation if you want to help keeping The-Starport online:

Bitcoin address:
Thanks!
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 68 users playing Freelancer on 42 servers.
June. 26, 2019

Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post



loot mod only goods and other but NO ammo
Not too shy to talk
Joined:
2009/5/17 0:13
Group:
Registered Users
FLServer Admins
Posts: 57
Offline
Hi guys,

well i have a question because my modders of my team don't find how to code the good loot mod.

We want a loot for all the ship in the game wich when a player is killed , he lose in space goods and other but not the ammo .

Because else we put the loot mod when player is killed they lose ammo in space, there will be so much ammo in space and it will create some freeze for player.

So we need to do a loot mod to player lose in space only goods and other but not the ammo

How can we do this ?


we have this code for the moment :

Code:

<script>
<data file="DATA\FX\fuse.ini" method="append">
<source>
[fuse]
name = drop_cargo_fuse
lifetime = 0.0
death_fuse = true
[dump_cargo]
at_t = 0.00000
origin_hardpoint = HpMount
[destroy_root]
at_t = 1.000000
</source>
</data>
<data file="DATA\SHIPS\shiparch.ini" method="append" numTimes="0">
<section>
ids_info2 = 66608
</section>
<source>
fuse = drop_cargo_fuse, 0.000000, 1
</source>
</data>
</script>


well i thank you for your anwser ^^

tell my your questions ^^

Posted on: 2009/10/9 15:18
Top
Re: loot mod only goods and other but NO ammo
Home away from home
Joined:
2008/5/15 21:52
From Germany
Group:
Registered Users
$$$ Supporters $$$
Senior Members
Posts: 1592
Offline
Eh...IIRC there isn't a mod solution to what do you want, I had the same problem in my past.

But afaik there is a FLHook plugin solution or something like that....?

Posted on: 2009/10/9 15:48
Open in new window
Top
Re: loot mod only goods and other but NO ammo
Home away from home
Joined:
2009/7/30 4:40
From P.R.C
Group:
Registered Users
Senior Members
Posts: 843
Offline
Well, in Freelancer.ini

[Server]
death_penalty = 100 ; percentage of your cargo (commoditied and unmounted equipment) lost at death in MP

Player will lost he's commoditied and unmounted equipment, only goods and no ammo.

Actually, if you want player drop they supply like battery etc, you can just do this with FLHook, but a simplely way is: make a money taker plugin.

Posted on: 2009/10/9 16:44
Open in new window
Sorry for my poor english...
Top
Re: loot mod only goods and other but NO ammo
Home away from home
Joined:
2008/5/13 15:48
Group:
Registered Users
FLServer Admins
$$$ Supporters $$$
Senior Members
Posts: 663
Offline
Quote:
...
We want a loot for all the ship in the game wich when a player is killed , he lose in space goods and other but not the ammo ...


Any news?

Posted on: 2012/9/20 10:35
Open in new window
Top
Re: loot mod only goods and other but NO ammo
Quite a regular
Joined:
2009/7/16 5:43
From Germany
Group:
Registered Users
Posts: 163
Offline
Did u try flhook's [NoSpaceItems] function?
works pretty good for me

(afaik fe. at 88flaks hook and the one by kosacid or discos playercntl)

Posted on: 2012/9/20 20:14
Top
Re: loot mod only goods and other but NO ammo
Home away from home
Joined:
2008/5/13 15:48
Group:
Registered Users
FLServer Admins
$$$ Supporters $$$
Senior Members
Posts: 663
Offline
My problem are not the drops or loot, but the loss.
I want to keep the ammo for the player.
Background:
We have items the player needs to collect, to get @ the next level.
Those are defined as [ammo] and kept at the ships with no
'dump_cargo' fuse.
But so I want at least the freighters to drop loot,
it's you can't have both situation atm (afaik).


Atm we are using KOSACID's FlHook plugin version 2.0
and I tried the playercntl plugin.

The player control plugin dumps additional stuff
(depending @ the settings of HullDropFactor), but NOT the cargo
(at least with this FlHook version).

And 'no space items' does only avoid, that this stuff
spawns in space (as far as I remember). For example
if a player would try to drop a no-trade-item.


Posted on: 2012/9/21 7:23
Open in new window
Top
Re: loot mod only goods and other but NO ammo
Just popping in
Joined:
2012/9/22 23:13
Group:
Registered Users
Posts: 2
Offline
Quote:

F!R wrote:
My problem are not the drops or loot, but the loss.
I want to keep the ammo for the player.
Background:
We have items the player needs to collect, to get @ the next level.
Those are defined as [ammo] and kept at the ships with no
'dump_cargo' fuse.
But so I want at least the freighters to drop loot,
it's you can't have both situation atm (afaik).


Atm we are using KOSACID's FlHook plugin version 2.0
and I tried the playercntl plugin.

The player control plugin dumps additional stuff
(depending @ the settings of HullDropFactor), but NOT the cargo
(at least with this FlHook version).

And 'no space items' does only avoid, that this stuff
spawns in space (as far as I remember). For example
if a player would try to drop a no-trade-item.



Hey,

It might be possible to do this with an FLHook Plugin; having the plugin copy the cargo of the player and then spawn it at their coordinates. That way you can have all ships keep ammo and destroy the cargo, which in turn gets spawned in space by the plugin, similar to the way 'playercntl' plugin spawns preset cargo (e.g. Engine components and Super Alloys)

I don't know what would be used as a particular call to copy the players cargo before they die, but I'm not a programmer either

Posted on: 2012/9/22 23:32
Top
Re: loot mod only goods and other but NO ammo
Home away from home
Joined:
2008/5/13 15:48
Group:
Registered Users
FLServer Admins
$$$ Supporters $$$
Senior Members
Posts: 663
Offline
Quote:
...
We want a loot for all the ship in the game which when a player is killed , he lose in space goods and other but not the ammo ...


Any news?
Maybe a plugin, for those items, which should not be lost?

Posted on: 2014/6/20 7:40
Open in new window
Top
Re: loot mod only goods and other but NO ammo
Just can't stay away
Joined:
2012/5/22 20:21
Group:
Registered Users
Posts: 190
Offline
Doesn't FLAC have something along these lines?

Posted on: 2014/6/21 19:05
Top
Re: loot mod only goods and other but NO ammo
Home away from home
Joined:
2008/5/21 19:32
Group:
Registered Users
FLServer Admins
$$$ Supporters $$$
Senior Members
Posts: 895
Offline
FLAC has an option to enable player looting but it's not selective. We use a different method to enable player looting that's not FLAC dependent.

With FLAC, ALL players are lootable. We have our mod set so that only freighters and capships are lootable. To the best of my recollection, with FLAC, that lootability applies also to ammo.

Have you tried adding a lootable = false line to the ammo section? I've not tried that myself and it may not work at all but I haven't seen it mentioned yet.

Posted on: 2014/6/21 20:20
Gun control is like fighting drunk driving by making it harder for sober people to buy a car...
Top
Re: loot mod only goods and other but NO ammo
Home away from home
Joined:
2008/5/13 15:48
Group:
Registered Users
FLServer Admins
$$$ Supporters $$$
Senior Members
Posts: 663
Offline
To make something 'not lootable' is no problem.

The problem is, to have the player loose items (ammo, unmounted equipment, cargo) principally,
but not to loose specific items (say ammo or a special token used for other features, as unlocking a gate).

Posted on: 2014/6/22 8:15
Open in new window
Top
Re: loot mod only goods and other but NO ammo
Just can't stay away
Joined:
2012/5/22 20:21
Group:
Registered Users
Posts: 190
Offline
As Robocop suggests then, surely the lootable = false line would cure that?

Posted on: 2014/6/22 9:33
Top
Re: loot mod only goods and other but NO ammo
Just can't stay away
Joined:
2010/8/9 17:45
Group:
Registered Users
FLServer Admins
Posts: 321
Offline
I think its NOT ABOUT that these "Items" are lootable.
There are several ways to prevent this...

The fact that the "drop_cargo_fuse" DROPS the ammo when the player dies seems to be the issue. Its seems that there is no way to EXCLUDE the type "ammo" from dropping at all when the fuse is active ´cos ALL TYPES of unmounted Items/ammo/commodities will be droped then... (at least AFAIK)

Hope there is somebody with a solution for this... could be useful...

Greeting J.R.

Posted on: 2014/6/22 11:52
ENIGMA V.4 ATG HOMEPAGE/FORUM
Top
Re: loot mod only goods and other but NO ammo
Home away from home
Joined:
2008/5/21 19:32
Group:
Registered Users
FLServer Admins
$$$ Supporters $$$
Senior Members
Posts: 895
Offline
Yeah, I didn't think of that. The OP wants the player who dies to keep their ammo, not prevent his/her killer from tractoring it in upon their demise. lootable = false would not help in this case.

Posted on: 2014/6/22 15:48
Gun control is like fighting drunk driving by making it harder for sober people to buy a car...
Top