Portal-Zone Gothic-Zone Gothic II-Zone Gothic 3-Zone Gothic 4-Zone Modifikationen-Zone Download-Zone Foren-Zone RPG-Zone Almanach-Zone Spirit of Gothic

 

Ergebnis 1 bis 7 von 7
  1. Beiträge anzeigen #1 Zitieren
    Ritter Avatar von aebo
    Registriert seit
    Oct 2008
    Beiträge
    1.278
     
    aebo ist offline

    NPC nicht in den Focus nehmen können

    Moin zusammen,

    ist es möglich einen NPC nicht in den Focus zu nehmen? Wenn ja, wie?

    Beste Grüße
    Das Wappen
    -Eine fantastische Spielwelt erwartet dich-
    -bis zu 100 Stunden Spielzeit-

  2. Beiträge anzeigen #2 Zitieren
    Ritter Avatar von Kirides
    Registriert seit
    Jul 2009
    Ort
    Norddeutschland
    Beiträge
    1.781
     
    Kirides ist offline
    Zitat Zitat von aebo Beitrag anzeigen
    Moin zusammen,

    ist es möglich einen NPC nicht in den Focus zu nehmen? Wenn ja, wie?

    Beste Grüße
    Du kannst diesen Code dafür recyclen

    https://apps.kirides.de/wog-script-b...focusfriendly/

  3. Beiträge anzeigen #3 Zitieren
    Ehrengarde Avatar von neocromicon
    Registriert seit
    Jan 2019
    Beiträge
    2.561
     
    neocromicon ist offline
    Ich bedanke mich auch mal. Das kann ich sehr gut in meiner Mod benutzen

  4. Beiträge anzeigen #4 Zitieren
    Ritter Avatar von aebo
    Registriert seit
    Oct 2008
    Beiträge
    1.278
     
    aebo ist offline
    Zitat Zitat von Kirides Beitrag anzeigen
    Du kannst diesen Code dafür recyclen

    https://apps.kirides.de/wog-script-b...focusfriendly/
    Jo super, ist damit erledigt
    Das Wappen
    -Eine fantastische Spielwelt erwartet dich-
    -bis zu 100 Stunden Spielzeit-

  5. Homepage besuchen Beiträge anzeigen #5 Zitieren
    Local Hero Avatar von Damianut
    Registriert seit
    Jul 2021
    Ort
    Poland
    Beiträge
    282
     
    Damianut ist offline
    Zitat Zitat von Kirides Beitrag anzeigen
    Du kannst diesen Code dafür recyclen

    https://apps.kirides.de/wog-script-b...focusfriendly/
    Hey. How to remove current focusing, if player is holding action key while drawing weapon?

    Your code works, but not for this case. I should hook new function for "EV_DRAWWEAPON", or there is more efficient solution?

    Cheers

  6. Beiträge anzeigen #6 Zitieren
    Ritter Avatar von Kirides
    Registriert seit
    Jul 2009
    Ort
    Norddeutschland
    Beiträge
    1.781
     
    Kirides ist offline
    Zitat Zitat von Damianut Beitrag anzeigen
    Hey. How to remove current focusing, if player is holding action key while drawing weapon?

    Your code works, but not for this case. I should hook new function for "EV_DRAWWEAPON", or there is more efficient solution?

    Cheers
    What do you want to accomplish?
    Stopping player from executing a killing blow?

    Then this code will stop the player from being able to do it (Gothic 2 only)
    Spoiler:(zum lesen bitte Text markieren)
    Code:
    func void _AlternativeUnsterblichkeit_Hook() {
        const int oCAIHuman__offsetNpc = 300;
        if (EDI == TRUE) {
            var oCNpc her; her = _^(MEM_ReadInt(ESI + oCAIHuman__offsetNpc)); // oCAIHuman->npc
            var C_NPC focus_Npc; focus_Npc = _^(her.focus_vob);
    
            if (!Npc_CanDie(focus_Npc)) {
                // Npc_CanDie is just a function that returns TRUE or FALSE depending on if the NPC should be killable
                EDI = 0; // No Killing Blow
            };
        };
    };
    
    func void AlternativeUnsterblichkeit_Init() {
        const int oCAIHuman__FightMelee_doFinish_G2Controls = 6912896; // 00697b80
        const int oCAIHuman__FightMelee_doFinish_G1Controls = 6910260; // 00697134
    
        HookEngineF(oCAIHuman__FightMelee_doFinish_G2Controls, 6, _AlternativeUnsterblichkeit_Hook); // G2 Steuerung
        HookEngineF(oCAIHuman__FightMelee_doFinish_G1Controls, 8, _AlternativeUnsterblichkeit_Hook); // G1 Steuerung
    };


    Or do you simply want to re-focus (i.e. stop the player from focus-glitching by using the action button)
    in this case, a hook for EV_DRAWWEAPON seem like a better plan.

  7. Homepage besuchen Beiträge anzeigen #7 Zitieren
    Local Hero Avatar von Damianut
    Registriert seit
    Jul 2021
    Ort
    Poland
    Beiträge
    282
     
    Damianut ist offline
    I want the player not to hit some NPCs. Especially by accident.

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
Impressum | Link Us | intern
World of Gothic © by World of Gothic Team
Gothic, Gothic 2 & Gothic 3 are © by Piranha Bytes & Egmont Interactive & JoWooD Productions AG, all rights reserved worldwide