Thread: Weapons
View Single Post
  #6  
Old 03-16-2001, 12:05 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
The S weapon will be customizable once
I have shorten the sword script enough
The script for cutting bushes still
takes some script, the other stuff is done in
a few lines:

if (created)
this.dirgo = {0,-1, -1,0, 0,1, 1,0};
if (weaponfired) {
setani sword,;
hitobjects playerswordpower/2,
playerx+1.5+2*this.dirgo[2*playerdir],
playery+2+2*this.dirgo[2*playerdir+1];
}
Reply With Quote