Help! public bool

power2020202020

Solid & Active Platinian
Original poster
Nov 3, 2022
58
15
8
34
brazil
hello I have a doubt I activated the invincibility in my mod menu I managed to activate it with true bool I just wanted to increase the damage of my strike blow and I put the same true bool and nothing changed would it be another value to gain blow damage?

// RVA: 0x14D7F88 Offset: 0x14D7F88 VA: 0x14D7F88
public bool get_Invincible() { } XEX 01 00 A0 E3 1E FF 2F E1 = VALUE 1 Also = True used for bool

worked perfectly


// RVA: 0x1A35108 Offset: 0x1A35108 VA: 0x1A35108
public bool get_strike() { } XEX 01 00 A0 E3 1E FF 2F E1 = VALUE 1 Also = True used for bool

nothing changed
 

libModz

Awesome Active Platinian
Jun 2, 2022
169
30
28
UK
You can't do it that way.

get_strike method returns true or false, not a damage value of int or float. You need to find a method that returns int or float, if there isn't one then it's possible that it's a field offset instead, which you can't modify by hex patching, you'd need to hook it.
 

Stakizo

Platinian
Sep 13, 2023
6
2
3
34
Public Bool means that you can set a value of 1 or 0, you can't set any other, otherwise the game will crash as soon as this function is triggered.