Kroenen Posted February 21, 2014 Report Share Posted February 21, 2014 Is it possible in a future update to change the animation used when buying/selling to a trader to a shorter one? The current 'medic' animation is simply too long when you want to sell like 12 ammo mags...you can go make a cup of tea and it's still going when you get back! :) Link to comment Share on other sites More sharing options...
Gr8 Posted May 22, 2014 Report Share Posted May 22, 2014 bump, I would love my player to do an animation that happens when you pick an item from the floor. Link to comment Share on other sites More sharing options...
RimBlock Posted May 22, 2014 Report Share Posted May 22, 2014 bump, I would love my player to do an animation that happens when you pick an item from the floor. Really ?. Everyting time you pick up a single object from the floot you want it to play a 3+ second animation even if you have zombies or players chasing you. I can see that getting very frustrating very quickly. Is it possible in a future update to change the animation used when buying/selling to a trader to a shorter one? The current 'medic' animation is simply too long when you want to sell like 12 ammo mags...you can go make a cup of tea and it's still going when you get back! :) Very easy to change but any suggestions which one to use that does not look ridiculous for trading. The better suggestion is a trader gui where you can purchase or sell multiple quantities of an item in a single animation. Epoch has a trader GUI in the code but it is not active AFAIK. Not sure if it will be activated with 1.0.5 or is being expored for a future release / was a canned experiment. I will be looking at traders and guis for a future mod I have in the queue (see my sig). RB Link to comment Share on other sites More sharing options...
Randodom Posted May 22, 2014 Report Share Posted May 22, 2014 Really ?. Everyting time you pick up a single object from the floot you want it to play a 3+ second animation even if you have zombies or players chasing you. I can see that getting very frustrating very quickly. RB I think he means that he'd like the trading animation to be the pickup aimation Link to comment Share on other sites More sharing options...
RimBlock Posted May 22, 2014 Report Share Posted May 22, 2014 Yep, he clarified (or pointed out my inability to read sometimes) in the other thread on the scripting help sub forum. Link to comment Share on other sites More sharing options...
Gr8 Posted May 27, 2014 Report Share Posted May 27, 2014 I saw the medic animation is coded in trade_items.sqf/trade_vehicles.sqf/... in dayz_code. But I dont think there is a way to redifine all those files in mission.pbo I checked compiles, self actions, but no luck :( Link to comment Share on other sites More sharing options...
Zupa Posted May 28, 2014 Report Share Posted May 28, 2014 I saw the medic animation is coded in trade_items.sqf/trade_vehicles.sqf/... in dayz_code. But I dont think there is a way to redifine all those files in mission.pbo I checked compiles, self actions, but no luck :( It is possible. I made an singleCurrency system that needs to change this files anyways. I'll give a quick example folllowing. bump, I would love my player to do an animation that happens when you pick an item from the floor. You'll need to edit your trading sqf's, NOTE for every type of item/vehicle, there is a dif one, u can see this code: player playActionNow "Medic"; // change this to another one, or leave out animation like explained later. _animState = animationState player; r_doLoop = true; _started = false; _finished = false; while {r_doLoop} do { _animState = animationState player; _isMedic = ["medic",_animState] call fnc_inString; if (_isMedic) then { _started = true; }; if (_started and !_isMedic) then { r_doLoop = false; _finished = true; }; if (r_interrupt) then { r_doLoop = false; }; sleep 0.1; }; r_doLoop = false; Basicly what it does is play the medical action and keeps looking until it's finished every 0.1 sec. So change your action to a diff one of your likings. Or just put sleep, 2 sec (for example : just delete the while loop and its content then) for just waiting with no actions. NOW where the fuck u find this ^^ ( ill give u locations later cus i'm at work and i dont have dayz files on my work laptop) well in your compiles u need to call this ( custom functions for your traders) which will override your old one.^^ call compile preprocessFileLineNumbers "gold\player_traderMenu.sqf"; You'll need your trade_any_verhicle.sqf and the others on in a folder and change all references in traderMenu to the new folder. AND change the medic animation in every trade file I'm not at home atm, so i'll look this evening if u can find that somewhere in dayz_code or somewhere ( been a while since i did this) Link to comment Share on other sites More sharing options...
Gr8 Posted May 28, 2014 Report Share Posted May 28, 2014 Thanks, i will try it now and get back to your with errors or success :P Link to comment Share on other sites More sharing options...
Gr8 Posted May 28, 2014 Report Share Posted May 28, 2014 Which files do i need in my fixes folder, this is what i got so far: trade_items trade_weapons trade_backpacks trade_any_vehicle trade_any_vehicle Link to comment Share on other sites More sharing options...
Gr8 Posted May 28, 2014 Report Share Posted May 28, 2014 Thanks, i got it working Can i post a noob instructions post on a new thread? i will make sure to give credits to you? pls, and thanks for your help Link to comment Share on other sites More sharing options...
Zupa Posted May 28, 2014 Report Share Posted May 28, 2014 Thanks, i got it working Can i post a noob instructions post on a new thread? i will make sure to give credits to you? pls, and thanks for your help sure man ^^ and the files ahm. These are the ones i use for my single currency, i made it buy/sell for items cus of the complexity of the single currency selling. Link to comment Share on other sites More sharing options...
Gr8 Posted May 29, 2014 Report Share Posted May 29, 2014 Tutorial : Link to comment Share on other sites More sharing options...
Gr8 Posted May 29, 2014 Report Share Posted May 29, 2014 You should share the sigle currency script with the community :P bFe 1 Link to comment Share on other sites More sharing options...
Gr8 Posted May 30, 2014 Report Share Posted May 30, 2014 @Zupa I need help with animations with a loop. In trade_items.sqf I changed the animation, put There is no way to interupt the loop. Can you code something so when i walk away, it would interupt the trading? This is my trade_items.sqf Link to comment Share on other sites More sharing options...
WallySchmo Posted December 18, 2014 Report Share Posted December 18, 2014 There is a script out there that allows you to sell directly from your backpack or vehicle. In this script you can specify how many items you want sold per animation. I think it's called trade from vehicle Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now