Thread: G3/GS2 Bugs.
View Single Post
  #7  
Old 03-18-2005, 08:52 PM
Velox Cruentus Velox Cruentus is offline
Registered User
Velox Cruentus's Avatar
Join Date: Dec 2004
Location: Quebec, Canada
Posts: 465
Velox Cruentus is on a distinguished road
Send a message via ICQ to Velox Cruentus Send a message via AIM to Velox Cruentus
This sums it.
PHP Code:
//#CLIENTSIDE
function onWeaponfired()
{
this.angle := playerdir==3?0:(playerdir+1)*1.57;
this.angle += random(-this.defprop[6],this.defprop[6]);
player.chat := "Bang!";

this.:= this.defprop[9][player.dir][0] + vecx(player.dir)*random(-this.defprop[6],this.defprop[6]);
this.:= this.defprop[9][player.dir][1] + vecy(player.dir)*random(-this.defprop[6],this.defprop[6]);

shoot player.x-this.x,player.y-this.y,player.z,this.angle,0,0,era_shotgun-bullet,;
shoot(player.x-this.x,player.y-this.y,player.z,this.angle,0,0,"era_shotgun-bullet.gani","");

That goes doesn't work. The player does say "Bang", but no projectile.

PHP Code:
function onCreated(){
  
setshape(1,32,32);

That doesn't work as well.

EDIT:

Apparently, Shoot works, though that projectile in particular doesn't work. So! I'll find the solution on my own. -- -- Found it. I don't know what was the problem, however. I do believe it's just the using this.x and this.y in weapons are read-only. Thus my projectiles didn't go well.

Last edited by Velox Cruentus; 03-18-2005 at 09:35 PM..
Reply With Quote