GTAMP.com

Grand Theft Auto Media Press
It is currently Sun Sep 24, 2017 5:14 am

All times are UTC




Post new topic Reply to topic  [ 40 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Tue Jun 27, 2017 12:27 am 
Offline
Boss
User avatar

Joined: Tue Mar 04, 2008 6:51 am
Posts: 1274
Location: GTAMP.com
Running around as normal while on fire looks funny, I like it.


Top
 Profile  
 
PostPosted: Tue Jun 27, 2017 1:43 am 
Offline
Hitman

Joined: Tue Dec 06, 2011 4:54 pm
Posts: 115
I'm gonna leave two NPCs on the map, the super slow flame thrower zombie in the orchard & the slow Dock Worker leader, that way players can intentionally set themselves on fire or cripple themselves. It's really fun running around on fire, especially given the greater risk of dying.

Do you know the exact address to set permanent electro fingers like the invisibility address? I'm going to see if I can do something with it.


Top
 Profile  
 
PostPosted: Tue Jun 27, 2017 12:35 pm 
Offline
Hitman

Joined: Tue Dec 06, 2011 4:54 pm
Posts: 115
Moved the "firehouse" over to another map, due to not fitting in with the overall feel of this map.

More progress. Black tiles on the ground outline where building's will go.

Almost have the main play area done. Working on peripheral arenas afterwards. The last pictures are of one such arena, the Rocket Catacombs. Upon entering it all weapons will be taken from you. Only rockets will be used here. There's two health tokens & four rocket launcher generators, with a fast respawn rate. They only have three rockets each. However, when you enter this zone, your speed is increased to 8 & you have no reload times for the rocket launcher.


Attachments:
southwest.png
southwest.png [ 1.47 MiB | Viewed 873 times ]
south.png
south.png [ 1.59 MiB | Viewed 873 times ]
south2.png
south2.png [ 1.51 MiB | Viewed 873 times ]
plaza.png
plaza.png [ 1.22 MiB | Viewed 873 times ]
rocketcatacombs2.png
rocketcatacombs2.png [ 1.49 MiB | Viewed 873 times ]
rocketcatacombs1.png
rocketcatacombs1.png [ 1.45 MiB | Viewed 873 times ]
Top
 Profile  
 
PostPosted: Tue Jun 27, 2017 12:54 pm 
Offline
Boss
User avatar

Joined: Tue Mar 04, 2008 6:51 am
Posts: 1274
Location: GTAMP.com
Devastator wrote:
Do you know the exact address to set permanent electro fingers like the invisibility address? I'm going to see if I can do something with it.

Same address as invis and other things, just different values depending on the combinations that are enabled (invisibility, on fire, invulnerable, electrofingers, shadow and probably some more)

Syntax: [ Download ] [ Hide ]
Using GTA2 Script Syntax Highlighting
COUNTER in
COUNTER out = 67108865 // electrofingers
//COUNTER out = 33554433 // invis
SET in = (p1+540)
CHANGE_GANG_CHAR_RESPECT (in, out, 114)
Parsed in 0.009 seconds, using GeSHi 1.0.8.10


If you want to find out your own value for a specific combination then you can use this code. Pick up the powerups you want and then the player's score will be the magic number you can use in your script. There is another way but it involves using bitmasks and it's annoying to do in GTA2 script without a XOR command.

Syntax: [ Download ] [ Hide ]
Using GTA2 Script Syntax Highlighting
SET in = (p1+540)
CHANGE_GANG_CHAR_RESPECT (in, out, 104)
ADD_SCORE (p1,-99999999)
ADD_SCORE (p1,out)
 
Parsed in 0.008 seconds, using GeSHi 1.0.8.10


Top
 Profile  
 
PostPosted: Tue Jun 27, 2017 1:02 pm 
Offline
Hitman

Joined: Tue Dec 06, 2011 4:54 pm
Posts: 115
Thanks a million Sektor


Top
 Profile  
 
PostPosted: Tue Jun 27, 2017 1:29 pm 
Offline
User avatar

Joined: Sat Dec 26, 2009 11:53 pm
Posts: 1060
you can check if bit X is set by (var mod 2^x)/2^x and add/remove it by adding/substracting 2^x if it is set/not set.

mod can be implemented by x-((var/x)*x)

so, yeah, its a big fuckery. it works because gta throws away the remainder because all variables are ints.

_________________
yur sa'nok ngeyä


Top
 Profile  
 
PostPosted: Tue Jun 27, 2017 2:15 pm 
Offline
Hitman

Joined: Tue Dec 06, 2011 4:54 pm
Posts: 115
Damn, that testing code doesn't seem to work on Double Damage or Fast Reload.


Top
 Profile  
 
PostPosted: Tue Jun 27, 2017 3:25 pm 
Offline
Boss
User avatar

Joined: Tue Mar 04, 2008 6:51 am
Posts: 1274
Location: GTAMP.com
Probably because they modify weapons, I think this location is just used for player modifications.

Instant gang seems to get fast reload and double damage when the player gets it, so there must be a way to use them on any ped.


Top
 Profile  
 
PostPosted: Tue Jun 27, 2017 10:54 pm 
Offline
Hitman

Joined: Tue Dec 06, 2011 4:54 pm
Posts: 115
It's interesting, when you're attacking with your code it sets the player score to 2049.


Top
 Profile  
 
PostPosted: Wed Jun 28, 2017 1:56 am 
Offline
User avatar

Joined: Sat Dec 26, 2009 11:53 pm
Posts: 1060
was it 1 before?

_________________
yur sa'nok ngeyä


Top
 Profile  
 
PostPosted: Wed Jun 28, 2017 2:18 am 
Offline
Hitman

Joined: Tue Dec 06, 2011 4:54 pm
Posts: 115
Yeah it goes up from 1 to 2049, back down to 1 when you stop attacking.


Top
 Profile  
 
PostPosted: Wed Jun 28, 2017 4:25 am 
Offline
Hitman

Joined: Tue Dec 06, 2011 4:54 pm
Posts: 115
When I throw a grenade it sets the counter at 4194305 & it stays there.


Top
 Profile  
 
PostPosted: Wed Jun 28, 2017 11:09 am 
Offline
User avatar

Joined: Sat Dec 26, 2009 11:53 pm
Posts: 1060
http://www.binaryhexconverter.com/decim ... -converter

script variables seem to be 32 bit long this one spans over multiple game variables. the last byte(8 bits) is for the powerups. actually not a surprise since you can have scores greater than 64k. it could have something to do with the fire animation. you should try out what happens if you force set those fire and grenade bits to 0.

_________________
yur sa'nok ngeyä


Top
 Profile  
 
PostPosted: Wed Jun 28, 2017 6:45 pm 
Offline
Hitman

Joined: Tue Dec 06, 2011 4:54 pm
Posts: 115
I noticed the address 16777217 when the player is on fire. So naturally I wanted to experiment with it. I started out with making it so that firing the flame thrower would set you on fire. But I then noticed the flamethrower arc changed. I thought maybe this had to do with the increased run speed I've set for when you're on fire, but I tested it further & it's specifically when you set the address manually. In this video I made it so that when you get on fire it sets the address again, to demonstrate the shift in the flamethrower arc. Looks pretty cool.

https://www.youtube.com/watch?v=zy8cPwu ... e=youtu.be


Top
 Profile  
 
PostPosted: Thu Jun 29, 2017 12:55 am 
Offline
User avatar

Joined: Sat Dec 26, 2009 11:53 pm
Posts: 1060
nice. btw you can test maps without having to go to the menu and running it as single player. just dont specify a player count and create a link to gta2.exe -c

_________________
yur sa'nok ngeyä


Top
 Profile  
 
PostPosted: Thu Jun 29, 2017 2:43 pm 
Offline

Joined: Sat May 16, 2009 6:14 am
Posts: 886
Location: London, UK
Some really creative modifiers. Changing player graphics in realtime to indicate health levels and other modes is a fantastic use of the new capabilities.

_________________
GTA5 Race, DM & Capture | GTA2 Levels & Coding | GTA2 YouTube Videos
Gran Turismo 6 custom track club(Sign in with PSN details, then follow link again.)


Top
 Profile  
 
PostPosted: Thu Jun 29, 2017 5:29 pm 
Offline
Hitman

Joined: Tue Dec 06, 2011 4:54 pm
Posts: 115
Thank you! My only concern is if any of this could cause desync. I don't know what would or not.

Here's an example of the code I used if anyone wants to implement something similar,

IF (CHECK_CHARACTER_HEALTH (p1, 1))
SET_CHAR_GRAPHIC_TYPE (p1, DUMMY_GRAPHIC, 9)
ENDIF
IF (CHECK_CHARACTER_HEALTH (p1, 25))
SET_CHAR_GRAPHIC_TYPE (p1, GANG_GRAPHIC, 9)
ENDIF
IF (CHECK_CHARACTER_HEALTH (p1, 101))
SET_CHAR_GRAPHIC_TYPE (p1, EMERG_GRAPHIC, 9)
ENDIF

IF (HAS_CHARACTER_DIED (p1))
SET_CHAR_GRAPHIC_TYPE (p1, GANG_GRAPHIC, 9)
ENDIF


Last edited by Devastator on Thu Jun 29, 2017 6:27 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Thu Jun 29, 2017 6:09 pm 
Offline
User avatar

Joined: Sat Dec 26, 2009 11:53 pm
Posts: 1060
nothing predictable should cause desyncs anymore

_________________
yur sa'nok ngeyä


Top
 Profile  
 
PostPosted: Fri Jun 30, 2017 5:24 am 
Offline
Hitman

Joined: Tue Dec 06, 2011 4:54 pm
Posts: 115
There will be a few secret vehicles on my map. Three bullet & flame proof gun jeeps with no reload times & unlimited ammo, a special agent car that continuously gives you one ammo for both the shotgun & silenced machine gun when you're inside of it, both of which have no reload times. A bullet proof meteor with unlimited Vehicle Machine Guns with no reload times. A bullet proof medicar that gives you full health when you get into it (750 hit points). A bullet & rocket but not flame proof fire truck, which I'm hoping to make it so that if you hit someone with the water cannon all their weapons will be removed. & the tank, with 50 rounds of vehicle machine guns with no reload time, a tank cannon with no reload times, & similarly to the medicar will give you full health (750) when you enter it. It will also continuously give you one ammo for the minigun (pistol with no reload time) when you're in it.

Put together a video where I steal the tank. Didn't reveal the actual entry point to the area though.

https://www.youtube.com/watch?v=uADvTt9 ... e=youtu.be


Top
 Profile  
 
PostPosted: Mon Jul 03, 2017 5:48 am 
Offline
Hitman

Joined: Tue Dec 06, 2011 4:54 pm
Posts: 115
Made a neighborhood arena north of the main play area. There's three entrances to it from the city area.

The tree half shadows visible in the pics mark where there is a 2 block wide flat hedge players can duck behind to take cover from enemy projectiles.

In the last picture is the secret agent compound in the bottom left corner which is not accessible from the suburbs, & north of that a smaller arena which you can get to from the suburbs by going under the bridge. I'm considering making an indestructible vehicle players can get into to teleport to the suburbs as well as a ship based rocket arena which is out of the way.


Attachments:
neighborhood1.png
neighborhood1.png [ 1.55 MiB | Viewed 742 times ]
neighborhood2.png
neighborhood2.png [ 1.47 MiB | Viewed 742 times ]
neighborhood3.png
neighborhood3.png [ 1.45 MiB | Viewed 742 times ]
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 40 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group