Quantcast

Jump to content

» «
Photo

GTA VC to SA Weapon Pickup

8 replies to this topic
TheGodfather.
  • TheGodfather.

    Nobody likes me here...I think...

  • Members
  • Joined: 19 Jun 2012

#1

Posted 20 January 2014 - 11:54 AM

Hi guys I made a script to make the SA Pickups look like VC Having corona on them :)

But there is a strange bug in it.Whenever I pickup the pickup the pickup is destroyed but the corona doesn't get removed.

 

Is it possible to remove the corona ??

 

gta_sa14.jpg

 

 


Danikov
  • Danikov

    The Fake Russian

  • Members
  • Joined: 27 Aug 2009
  • Israel

#2

Posted 20 January 2014 - 12:14 PM Edited by Danikov, 20 January 2014 - 12:16 PM.

Hi guys I made a script to make the SA Pickups look like VC Having corona on them :)
But there is a strange bug in it.Whenever I pickup the pickup the pickup is destroyed but the corona doesn't get removed.
 
Is it possible to remove the corona ??
 
gta_sa14.jpg
 
 

I think about doing it like this.
Use Opcode 0214 to check if a pickup has been taken,and then use the opcode that removes the corona(don't know what opcode number is it) after Opcode 0214 returns true.
I am talking theoritically,never tried doing so,but I think it should do the trick.
Opcode 0214: http://gtag.gtagamin...se/opcode/0214/

Edit: Or maybe set the coronas alpha to 0 after you take the pickup?

TheGodfather.
  • TheGodfather.

    Nobody likes me here...I think...

  • Members
  • Joined: 19 Jun 2012

#3

Posted 20 January 2014 - 02:05 PM

Well I already did that sorry I forgot to give the script my bad ...Check it out :

 

{$CLEO}
wait 5000
03F0: enable_text_draw 1
while true
 wait 0
{$I forallpickups}
065B: store_pickup pick position_to 1@ 2@ 3@
024F: create_corona_with_radius 0.5 type 9 lensflares 1 with_color 255 0 0 at 1@ 2@ 3@
 
{$I for_end}
 
end
0a93:

Danikov
  • Danikov

    The Fake Russian

  • Members
  • Joined: 27 Aug 2009
  • Israel

#4

Posted 20 January 2014 - 03:19 PM

 

Well I already did that sorry I forgot to give the script my bad ...Check it out :

{$CLEO}
wait 5000
03F0: enable_text_draw 1
while true
 wait 0
{$I forallpickups}
065B: store_pickup pick position_to 1@ 2@ 3@
024F: create_corona_with_radius 0.5 type 9 lensflares 1 with_color 255 0 0 at 1@ 2@ 3@
 
{$I for_end}
 
end
0a93:

 

Alright,sorry,I thought the coronas are stored into a variable,my bad.

A way I see is to check if the corona has not been picked up,so it will create the corona.

{$CLEO}
wait 5000
03F0: enable_text_draw 1
while true
 wait 0
{$I forallpickups}
065B: store_pickup pick position_to 1@ 2@ 3@
if
8214: NOT pickup pick picked_up 
then
024F: create_corona_with_radius 0.5 type 9 lensflares 1 with_color 255 0 0 at 1@ 2@ 3@
{$I for_end} 
end
0a93:

This is untested,but I think it should work.


TheGodfather.
  • TheGodfather.

    Nobody likes me here...I think...

  • Members
  • Joined: 19 Jun 2012

#5

Posted 21 January 2014 - 07:15 AM

Nah..It doesn't work either..:p

Any other idea dude ?? 


Danikov
  • Danikov

    The Fake Russian

  • Members
  • Joined: 27 Aug 2009
  • Israel

#6

Posted 21 January 2014 - 07:20 AM

Nah..It doesn't work either..:p
Any other idea dude ?? 


There's another thing,there's an opcode that checks if a pickup is at specific co-ords.
So maybe try using it?
Here's the opcode : http://gtag.gtagamin...se/opcode/048C/

TheGodfather.
  • TheGodfather.

    Nobody likes me here...I think...

  • Members
  • Joined: 19 Jun 2012

#7

Posted 22 January 2014 - 03:50 AM

Well the main problem is with removing the corona as there is no way I am able to remove the corona!!


Silent
  • Silent

    Moderating Cookie Monster

  • Feroci Racing
  • Joined: 01 Feb 2010
  • Poland
  • Most Helpful [GTA] 2013
    Most Helpful [Modding] 2013
    Most Talented [Modding] 2013
    Best Map 2013 "ViceCityStories PC Edition"
    Best Vehicle 2013 "III Aircraft"
    Most Helpful [Modding] 2012
    Modder of the Year 2012

#8

Posted 22 January 2014 - 02:37 PM Edited by SilentPL, 22 January 2014 - 02:37 PM.

Coronas lifetime is only a frame, so they'll vanish by themselves.
Last Danikov's example looked accurate enough, but the IF...THEN...END construction is messed up. Corrected:
 
{$CLEO}
0000: CORONAS

while true
	wait 0
	{$I forallpickups}
	065B: store_pickup pick position_to 1@ 2@ 3@
	if
		8214:	NOT pickup pick picked_up
	then
		024F: create_corona_with_radius 0.5 type 9 lensflares 1 with_color 255 0 0 at 1@ 2@ 3@
	end
	{$I for_end}
end
EDIT:
Jesus these tabulators are messed up.

TheGodfather.
  • TheGodfather.

    Nobody likes me here...I think...

  • Members
  • Joined: 19 Jun 2012

#9

Posted 25 January 2014 - 06:08 AM

Thanks dude that worked :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users