Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-21-2010, 09:43 PM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
Example of changing speed of shoot:
PHP Code:
temp.angle getangle(vecx(player.dir), vecy(player.dir));
temp.speed 1.5;
shoot(player.xplayer.yplayer.ztemp.angle0temp.speed"gani"ganiparam); 

Example of changing gravity of shoot:
PHP Code:
temp.angle getangle(vecx(player.dir), vecy(player.dir));
temp.oldgravity gravity;
gravity 5;
shoot(player.xplayer.yplayer.ztemp.angle01"gani"ganiparam);
gravity temp.oldgravity
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #2  
Old 08-22-2010, 12:53 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by Tigairius View Post
Example of changing speed of shoot:
PHP Code:
temp.angle getangle(vecx(player.dir), vecy(player.dir));
temp.speed 1.5;
shoot(player.xplayer.yplayer.ztemp.angle0temp.speed"gani"ganiparam); 
Falls right into the ground as soon as it's shot.
__________________
Quote:
Reply With Quote
  #3  
Old 08-22-2010, 01:40 AM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
Quote:
Originally Posted by fowlplay4 View Post
Falls right into the ground as soon as it's shot.
Not if gravity is 0.
Reply With Quote
  #4  
Old 08-22-2010, 02:00 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by DrakilorP2P View Post
Not if gravity is 0.
Nifty, but now they go over walls which may or may not be what I need for every situation. Looks like I'll have to go custom or shoot2 with parameters to enable wall detection.
__________________
Quote:

Last edited by fowlplay4; 08-22-2010 at 02:13 AM..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:20 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.