AMFP custom pickup icon - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: AMFP custom pickup icon (/thread-25966.html) Pages:
1
2
|
AMFP custom pickup icon - KiraImmortal - 08-27-2014 hey! i would like to use the custom pickup_note.tga for the notes that are available for the game. i found a command: SetEntityCustomFocusCrossHair, but i can't make it to work, the icon stays the normal pickup icon when i focus on the notes. anyone knows how to get this work properly? :o there is no crosshair for notes in TDD, i got it from AMFP, maybe i have to add it to the game itself somehow? RE: AMFP custom pickup icon - PutraenusAlivius - 08-27-2014 Oh you want to use the AAMFP hand pickup icon but the default ATDD hand pickup icon appears instead? I think it's built in and most likely needs an FC. RE: AMFP custom pickup icon - KiraImmortal - 08-27-2014 not exactly. i'm using a full conversion mod with all the AMFP stuff: grab, pickup and push icons, also with custom menu, all the guis from the game, so i know how to use that stuff. my problem is that AMFP has custom crosshair icon for NOTES. and i can't get it to work in TDD with the mentioned command, even that i added its tga file into graphics/hud :c RE: AMFP custom pickup icon - FlawlessHappiness - 08-27-2014 Have you tried this? void SetEntityCustomFocusCrossHair(string& asName, string& asCrossHair); It's a more complicated solution, but it's a work around, and might work. Just use a for-loop at the same names for the notes. RE: AMFP custom pickup icon - Mudbill - 08-27-2014 Firstly, yes you can override textures in the game, but since notes use the same as the normal pickup icon, I think it would replace it for all items. Secondly, the SetEntityCustomFocusCrossHair script uses preset names for the asCrossHair var. It's not the file name, but the name of the pickup entry. For example PHP Code: SetEntityCustomFocusCrossHair("EntityName", "Pick"); This will make the Pick icon appear when you focus the EntityName entity/area. Quote:asCrossHair - desired crosshair, can be: Default (uses default), Grab, Push, Ignite, Pick, LevelDoor, Ladder RE: AMFP custom pickup icon - KiraImmortal - 08-27-2014 yeah that's also what i've tried. SetEntityCustomFocusCrossHair("note_chain", "hud_crosshair_over_note.tga"); i placed this line in OnStart(), just like i've seen it in amfp. also i've tried original like hud_crosshair_over_leveldoor.tga, but none of them works for me :/ i understand. then, how can i add a new category called "Note"? is it possible? okey, i tried what you've mentioned Mudbill. Your version works on objects like books, bottles, but have no effects on notes. what could be the reason for this? :o RE: AMFP custom pickup icon - Mudbill - 08-27-2014 I personally haven't tried it on notes before, but perhaps their own icon overrides it. Maybe they are focused in a different way that makes them not trigger the focus event. I would be odd though. I'm sure there's some way to get it working. I can't really test it at the moment though. RE: AMFP custom pickup icon - KiraImmortal - 08-27-2014 yeah there must be a way cause AMFP used it, and most functions were transfered into TDD with the 1.3 patch. i just can't figure it out how to do it. well if you have time and you can try it i would be grateful, i'll continue testing also myself RE: AMFP custom pickup icon - Mudbill - 08-27-2014 Well, even with the 1.3 patch, there are many things that aren't available in TDD from AMFP. If everything was possible, you could probably make AMFP into a FC mod for TDD if you wanted to. Perhaps this is such a minor thing that they didn't think of transfering it to TDD. Maybe they will if they decide to update the beta patch. RE: AMFP custom pickup icon - KiraImmortal - 08-27-2014 well let me know if it is possible, it's really a minor thing, but i don't release any mod of mine before it's totally finished with everything possible that i've been planning |