Thread: shoot in gs2
View Single Post
  #1  
Old 01-06-2006, 07:07 PM
Prozac Prozac is offline
one of the good guys
Prozac's Avatar
Join Date: Jan 2006
Posts: 245
Prozac is on a distinguished road
Send a message via AIM to Prozac
shoot in gs2

In code that is otherwise gs2, I find myself needing to have one line of code in gs1 becasuse the gs2 formatting causes shoot to not work.

What I have: (this.angle is set with getangle from the vecs of the playerdir)
PHP Code:
  shoot playerx,playery,playerz-1,this.angle,.3,2.5,sc_arrow1,sc_arrow1
and that works fine. the gani shows correctly in the projectile.

what the wiki says on http://wiki.graal.us/GScript under old to new conversions:

Quote:
Originally Posted by wiki
shoot float, float, float, float, float, float, oldstring, oldstring;
shoot(float,float,float,float,float,float,string,s tring);
so I tried it:

PHP Code:
  shoot(playerx,playery,playerz-1,this.angle,.3,2.5,sc_arrow1,sc_arrow1); 
and it makes the gani of the projectile become just the oval shadow.
as the old newfeatures file which addresses shoot says it may do.

I know that the last variable is supposed to be the gani attribute,
but there is no gani attribute that I need to change.
All I want to do it show the gani as-is.

Even setting the last attribute to arrow - which is what i called the arrow sprites when i made the gani - it still just shows the gani.

Taking off the last variable in gs2 causes the projectile to not show up at all.

I just want one arrow frame for the correct direction to show, so i do not need setshootparams.

I tried a forums search and the only possibly useful thread had the code that would have been helpful to me deleted by lance, in this thread
http://forums.graalonline.com/forums...ighlight=shoot

so ... what broke in gs2 here?
or, what am I doing wrong? Basically, what would an example ganiparams look like? I have use every resource (forums search, wiki, newfeatures) and cannot find what i need to know to make this work in gs.
Please have mercy and help me!!!
Reply With Quote