Federicoxxx Posted May 2, 2015 Share Posted May 2, 2015 there is a way to activate, the powerup indefinitly ? i mean once you pick it up .. instead of diying in 30 seconds ..make it die in .. 3000 ? i search on pages.. on the programming guide ... but .-.NOTHING AT ALL about dat ... i could try inside a while. .tough but i think that only works with weapons.. WHILE_EXEC ( neverends = 1 )GIVE_WEAPON ( p1 , fast_reload , 3000 ) ????? i think that...wont work the same way as weapons .. Link to comment Share on other sites More sharing options...
Sektor Posted May 3, 2015 Share Posted May 3, 2015 (edited) You can't change powerup timer with official commands but there are memory patches you can do. The CHANGE_GANG_CHAR_RESPECT in v11.44 is a special command that can read/write memory. Example for changing weapon reload: //change reload delayCOUNTER reload SET in=(p+368) //player + 368 is a pointer to the player ammo (only for first weapon slot) CHANGE_GANG_CHAR_RESPECT (in,out,104) //read those 4 bytes IF (out>0) SET reload=(out+2) //we don't care about ammo, reload countdown is located at ammo location + 2 CHANGE_GANG_CHAR_RESPECT (reload,out,101) //read 1 byte IF (out>5) // replace 5 with the reload time you want, 0 is instant reload SET out=5 // replace 5 with the reload time you want, 0 is instant reload CHANGE_GANG_CHAR_RESPECT (reload,out,111) //write 1 byte ENDIF ENDIFThe other powerups would use different memory addresses, I haven't looked them all up. Edited May 3, 2015 by Sektor Link to comment Share on other sites More sharing options...
Federicoxxx Posted May 5, 2015 Author Share Posted May 5, 2015 You can't change powerup timer with official commands but there are memory patches you can do. The CHANGE_GANG_CHAR_RESPECT in v11.44 is a special command that can read/write memory. Example for changing weapon reload: //change reload delayCOUNTER reload SET in=(p+368) //player + 368 is a pointer to the player ammo (only for first weapon slot) CHANGE_GANG_CHAR_RESPECT (in,out,104) //read those 4 bytes IF (out>0) SET reload=(out+2) //we don't care about ammo, reload countdown is located at ammo location + 2 CHANGE_GANG_CHAR_RESPECT (reload,out,101) //read 1 byte IF (out>5) // replace 5 with the reload time you want, 0 is instant reload SET out=5 // replace 5 with the reload time you want, 0 is instant reload CHANGE_GANG_CHAR_RESPECT (reload,out,111) //write 1 byte ENDIF ENDIFThe other powerups would use different memory addresses, I haven't looked them all up. thanks a lot for the answer sektor! i recently begin scripting,, doing lame , simple things,, but is quite fun! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now