Thank you, Tally
Thank you, Tally
kubislav23 (14th March 2018)
Well, nothing was done, i want to show how i putting this function in details, if someone can hint it is correctly or wrong, i will be glad to any help, maybe can at least begin to understand more, all tutorials do not give much, it is better to learn in practice.
Last edited by G-Stuff002; 19th March 2018 at 23:33.
kubislav23 (20th March 2018)
1-st Step.
I've sorted out all the necessary files: zz_tellermine.iwd
Structure and position of the files I leave as is, since for these files all credits for Tally
demon/_utils.gsc
images/hud_tellermine.iwi/hud_tellermine_diffuse.iwi/tellermine.iwi
materials/hud_tellermine/hud_tellermine_defuse/tellermine
perks/_bombsquad.gsc/_landmines.gsc
xmodel/tellermine
xmodelparts/tellermine0
xmodelsurfs/tellermine0
kubislav23 (20th March 2018)
2-nd Step.
First of all i'll try to put and unite codes with mod, if it turns out after will needed to edit the function (small change)
In maps/mp/gametypes/_callbacksetup.gsc
are added:
//------- Start Threads -------
thread perks\_landmines.gsc::init();
_landmines.gsc has redirection to:
#include demon\_utils;
Last edited by G-Stuff002; 20th March 2018 at 09:22.
kubislav23 (20th March 2018)
I've got a bit of time today, and am currently working on it. I hope to have it finished by the end of the day.
Sorry for the delay.
G-Stuff002 (20th March 2018)
Maybe you need latest edited mod, because it will need to change control for right mouse button and restriction setting to planting 10 mines. I details wrote all this in the first post
http://www.filehosting.org/file/deta...lcustom_v1.rar
kubislav23 (20th March 2018)
The idea was to add 10 mines to the right mouse button in weapon p38 for any player in team who will choose 'p38'. If i find where it can be changed, it's ok, but I think the script itself will not allow this
kubislav23 (20th March 2018)
Someone downloaded the mod. He was in a single copy edited for this, ok, i will upload again but i have too slow upload speed
kubislav23 (20th March 2018)
The script does not use either the left or the right mouse button. It uses the USE (default = F) button to plant. I do not see the sense in switching to the ADS button (= right mouse button) in order to plant a mine, when the F button at that point is free.
Also, 10 mines? What the hell is that for? Are 2 not enough?