Recent Posts

Pages: [1] 2 3 ... 10
1
Modification / Re: How to modify weapon fire range?
« Last post by Ghoul-bb on Nov 12, 2018; 12:01 AM »
One problem, with weapon's accuracy, is totally solved. All we need, is located in missiles table.
There are four columns, responsible for missile's accuracy.
They are: horizontalAccuracy, verticleAccuracy. As closer to zero numbers in these columns, as accurate the weapon is.
But... there are two more columns: walkSpeed and walkMax. Modifying these parammeters, I found, that as faster the projectile is, as it is more accurate.
So, there are two ways to change an accuracy for the weapon!

Example: horizontalAccuracy = 0.5 verticleAccuracy = 0.5 walkSpeed = 25 walkMax = 30
if we change only : horizontalAccuracy = 0.25 verticleAccuracy = 0.25 , we will receive two times more accurate weapon.
And, if we change only walkSpeed = 50 walkMax = 60, we also receive the same result, but with two times more faster projectiles.
Of course, it's possible to change all four parameters. We will receive 4 times more accurate weapon with two times faster projectiles.

So, the last problem, which is not solved yet is with extended weapon's range....
2
Modification / Re: How to sell specific items?
« Last post by Ghoul-bb on Nov 11, 2018; 11:43 PM »
It was very simple.
sellPriceAdd column. If number here is more, than 0, it is available to sell the item. No more changes is nessesary.
3
Modification / Re: How to sell specific items?
« Last post by Ghoul-bb on Nov 11, 2018; 12:14 AM »
Do you mean selling an item or offering an item in a merchant's offer ?

First thing is simple, just enter any price at the item.
You can look into revival data, where all event things can be sold.
Table "items", parameters"buyPriceMult","buyPriceAdd" and "sellPriceMult","sellPriceAdd"

Second thing is very difficult, you must edit treasure table with merchant offer...

I'm about the first case, of course. Because there are a lot of special event items, which cannot be sold and i have to destroy them periodically, to avoid inventory overloading with this scrap.
4
Modification / Re: How to sell specific items?
« Last post by Kikina the templar on Nov 10, 2018; 01:21 AM »
This is an interesting thing.
I never thought that the setting of 'unlimited_in_merchant_inventory' bitmask could cause the merchant to sell thing up automatically. Only setting "spawn at merchant" is certainly not enough, merchant selling items via pre-set UnitTypes.
Treasure for common merchant is "bodger", if i remember correctly.
5
Modification / Re: How to sell specific items?
« Last post by Malachor on Nov 10, 2018; 12:52 AM »
After modifying the buy/sell prices, try setting spawnAtMerchant in bitmask01 to true, and then in props1, add: SetStat669('unlimited_in_merchant_inventory', 1);
That's what the grenade blueprint has set. I can find only one reference to it in Treasure and it's grouped with a couple of other items, which aren't sold by the merchant.
6
Modification / Re: How to sell specific items?
« Last post by Kikina the templar on Nov 10, 2018; 12:09 AM »
Do you mean selling an item or offering an item in a merchant's offer ?

First thing is simple, just enter any price at the item.
You can look into revival data, where all event things can be sold.
Table "items", parameters"buyPriceMult","buyPriceAdd" and "sellPriceMult","sellPriceAdd"

Second thing is very difficult, you must edit treasure table with merchant offer...
7
Modification / Re: How to modify weapon fire range?
« Last post by Kikina the templar on Nov 09, 2018; 11:53 PM »
How find which weapon belongs to which missile ?

- In table "items" look at parameter "startingskills" - for example item 442 "Crusher Cannon" have here number 639
- Look to table "skills". In line 639 is skill named "Crusher Cannon". Look at parameter "events". Here you find "weapon/CrusherCannon"
- now you must uncooking game data and in data/skills/weapon you must find file with name "crushercannon.xml"
- open this file and in script search for line "<pEvents>Fire Missile</pEvents>". Somewhere under this line you find definition "<tAttachmentDef.pszAttached>Crusher Cannon</tAttachmentDef.pszAttached>" this is name of missile
- now go to table "missiles" and find here name "Crusher Cannon", is in line number 25

(Btw, this is a practical demonstration of how you should never have to working with data in your game...)
8
Modification / How to sell specific items?
« Last post by Ghoul-bb on Nov 09, 2018; 11:41 PM »
I'm facing with the problem of selling special items, like healloween stuff, item receipes....
How to enable "sell" option for them? I Was looking in items table, but found nothing..
10
Modification / Re: How to modify weapon fire range?
« Last post by Ghoul-bb on Nov 09, 2018; 05:03 PM »
Quick suggestion - can you look at existing weapons and see the changes made to make them more accurate or high fire rates?

E.g: My char has a sniper rifle (yes, sniper) that fires 1200 rounds per minute (from a sniper?).

My suggestion is to find a high fire rate weapon then compare that to a lower fire rate one and check the values/positions that change - just like we used to do in the "old days" of hacking games and save files, ha!

I hope, I found an accuracy for projectiles: Missiles table, horizontalAccuracy, verticalAccuracy.
But I can only guess, which weapon this projectile belongs to. So, I need time to check this theory.
Pages: [1] 2 3 ... 10