• Ironsights Designer - Make Ironsight Coords in 30 Seconds!
    111 replies, posted
[b]THIS IS TARGETTED AT DEVELOPERS. IF YOU DO NOT UNDERSTAND THE PURPOSE OF THIS, IT'S NOT FOR YOU - THOUGH LOOK FORWARD TO A SCRIPTED WEAPON PACK DESIGNED USING THIS TOOL FROM ME EVENTUALLY![/b] Need help, or want an idea on how this works? See the instructions here: [url]http://forums.facepunchstudios.com/showthread.php?p=8976088#post8976088[/url] Download: [url=http://www.garrysmod.org/downloads/?a=view&id=29787][img]http://www.garrysmod.org/img/?t=dll&id=29787[/img][/url] [b]This utility has assisted in the making of:[/b] - [url=http://forums.facepunchstudios.com/showthread.php?t=484758]Guiltyspark's DOD:S weapons with iron sights pack[/url] - [url=http://www.garrysmod.org/downloads/?a=view&id=32388]Beretta M9 w/ ironsight[/url] - Some developers who would not admit to it I bet you If you are going to release something in which ID helped, post in this thread and I'll add your release to this list - basically, bonus publicity for your stuff at no cost to you (I'm not asking for mutual linking - this utility doesn't make your releases not 100% yours). [b]But what is it?[/b] Although this is strictly speaking a weapon, I'm going to call it a utility. In the form of a weapon in your inventory, Ironsights Designer allows you to type in a view model file path, then manipulate the view model in real-time using a combination of multiple drag modes and a custom weapon menu. Perhaps best explained in screenshots and a video... Video content: Starts with CS:S Fiveseven model already loaded. Pos X/Z, Pos Y are played with a little for example (dragging model with left-click, changing mode with right-click). Weapon then positioned with Pos X/Z, and position further refined with Ang Pitch/Yaw. Mouse activated with Sprint key, 'Transplant ironsights...' selected to temporarily hack ironsights onto all ironsightable weapons in inventory using the same model (in this case, only the default CS:S Fiveseven weapon). Weapon changed to CS:S Fiveseven, ironsights entered and tested. I did not fit printing the ironsight functions to console and copying them into a SWEP into the video, but this IS neccessary to save ironsight coordinates to weapons permanently. All these actions took 30 seconds. Once you have got used to using the utility, [b]creating new ironsight coords for weapons rarely takes more than 30 seconds, allowing whole packs of weapon view models to be given ironsight coordinates in minutes.[/b] [media]http://www.youtube.com/watch?v=HdtZqsvo85Q[/media] [url=http://i16.photobucket.com/albums/b35/Devenger/gm_construct0027.jpg][img]http://s16.photobucket.com/albums/b35/Devenger/th_gm_construct0027.jpg[/img][/url][url=http://i16.photobucket.com/albums/b35/Devenger/gm_construct0028.jpg][img]http://s16.photobucket.com/albums/b35/Devenger/th_gm_construct0028.jpg[/img][/url][url=http://i16.photobucket.com/albums/b35/Devenger/gm_construct0031.jpg][img]http://s16.photobucket.com/albums/b35/Devenger/th_gm_construct0031.jpg[/img][/url] This is entirely my own work, though it is inspired by [url=http://forums.facepunchstudios.com/showthread.php?t=456096]Kogsitune's Ironsight Helper[/url]. Additional credits go to RabidToaster for helping me through an interesting string-related difficulty. [b]This will only work in singleplayer, full stop.[/b] [b]Basic controls:[/b] LEFT-CLICK: Drag weapon into position RIGHT-CLICK: Change drag mode SPRINT: Toggle mouse [b]Menu options/readouts:[/b] - Model: <[i]modelpath[/i]> (click to open a text entry box to change model) - Ironsight Pos: <[i]vector[/i]> - Ironsight Ang: <[i]angle[/i]> - Reset selected axes (RELOAD) - Reset all axes (USE + RELOAD) - Toggle ironsights (JUMP) - Toggle model flip - Toggle Crosshair - Load ironsights from data/ironsights/*.txt - Transplant ironsights onto all SWEPs in inventory with same model ([i]this is only temporary, you'll need to copy the ironsights manually into the file for the changes to take permanent effect![/i]) - Print ironsight functions to console (USE) - Save ironsight functions to data/ironsights/*.txt - Test animation 1 (varies, usually firing) - Test animation 2 (varies, sometimes reloading) If no-one else uses this, I will, so it won't have been a waste of time... ish.
I think it's a grait idea!
This is great, going to use it to add irons to the DoD sweps.
Very nice work there mate!
Verry nice my friend, Have a Lua King :)
This should help a lot of people, getting ironsights right is tricky, you may have singlehandedly solved that problem :).
I saw this in your blog. Looks really good, why has no one made this before?
[QUOTE=jkruse05]This is great, going to use it to add irons to the DoD sweps.[/QUOTE] That's a grait idea, I'm going to try that.
Very nice just tested it, kind of hard to use when you don't know the model names. All round awesome!
[QUOTE=D3vils Buddy]Very nice just tested it, kind of hard to use when you don't know the model names. All round awesome![/QUOTE] The console command used by the text entry - ID_ViewModel - has an autocomplete function. It's a bit buggy, but putting 'aug' will get you to v_rif_aug, which will in turn be converted to models/weapons/v_rif_aug.mdl by the console command interpreter function. I assume if you hex a model you'll know what name you gave it, and there are already ironsights for most of the default models floating around anyway, so I didn't put much time into it.
Do us a favor, and keep a crosshair on this tool, so we can get everything perfectly lined up.
[QUOTE=TomatoSoup]Do us a favor, and keep a crosshair on this tool, so we can get everything perfectly lined up.[/QUOTE] The crosshair can be toggled on and off.
Well done, this is going to help a lot of people with ironsights. Lua kinged.
Very fucking awesome.
Just so everybody knows, if the SWEP does not already have the code lines for ironsights you must manually copy and paste them from garrysmod\data\ironsights\weaponmname for them to work permanently. Not a big deal, but I know somebody will complain about it not working.
This is similar to the old Gmod9 HUD helper thingy. It allowed you to use sliders in the context menu to place rects and text easily.
where would you download this to?
Is it posible to put a browse menu to find Sweps? I'm haveing a really hard time trying it with diffrent Sweps. How do you do it????
I made a ironsight pack for the DODS weapons I might release it tommorow All props to LUA king devenger
[QUOTE=Guiltyspark]I made a ironsight pack for the DODS weapons I might release it tommorow All props to LUA king devenger[/QUOTE] I hope you do, i have been waiting for that. Thanks :)
I have been waiting for something like this for ages! :D This is just steps away from some kind of in-game swep creation suite.
finished thanks devenger ! thread going up [url]http://forums.facepunchstudios.com/showthread.php?t=484758[/url]
This is much better than mine was :keke:. Nice job, Devenger.
[QUOTE=winstin001]Is it posible to put a browse menu to find Sweps? I'm haveing a really hard time trying it with diffrent Sweps. How do you do it?[/QUOTE] I'm going to assume you are talking about models... I am considering adding a simple file browser for models in the models/weapons folder. [QUOTE=Guiltyspark]finished thanks devenger ! thread going up [url]http://forums.facepunchstudios.com/showthread.php?t=484758[/url][/QUOTE] Great! I've added a link in the main post to it, which I will do for any releases that ID helped with and I am aware of (post in this thread or PM me). [QUOTE=Kogitsune]This is much better than mine was :keke:. Nice job, Devenger.[/QUOTE] Hoorah, praise from above! And I'm relieved you didn't mind me nicking the idea. [QUOTE=Cazull]This is just steps away from some kind of in-game swep creation suite.[/QUOTE] [nocommitment] Ooooh... [/nocommitment]
[QUOTE=Guiltyspark]finished thanks devenger ! thread going up [url]http://forums.facepunchstudios.com/showthread.php?t=484758[/url][/QUOTE] WOW!!! grait job on the DOD Sweps. Thanks a ton! :) :) :)
This is awesome, now I can get the iron sights right on my own shit.
How do you change the Swep to edit it? I am haveing a hard time changeing the swep.
Pleas add FOV to it too. :) Anyhow, awesome work.
[QUOTE=winstin001]How do you change the Swep to edit it? I am haveing a hard time changeing the swep.[/QUOTE] The utility loads weapon view models, not SWEPs. In the menu on the left side of screen (that looks like an extension of tool HUD), click on the 'Model: ...' and it will turn into a textbox. Edit the contents (e.g. replace 'p228' with 'deagle') and click 'Set'. The weapon model will change accordingly.
I've changed the model, but it stays as the default gun. If I click test animation 1 it flashes on left for a second.
Sorry, you need to Log In to post a reply to this thread.