Difference between revisions of "Shooting"

From WikiManual
Jump to: navigation, search
m (Shot Types:)
m (Shot Types:)
Line 7: Line 7:
 
Whenever a non zero value is stored in .shoot, a shot is produced. This shot by default fires directly along the bot's eye's vector (that is, which direction it's looking). The shot's basic strength and range are determined by a bot's body.  
 
Whenever a non zero value is stored in .shoot, a shot is produced. This shot by default fires directly along the bot's eye's vector (that is, which direction it's looking). The shot's basic strength and range are determined by a bot's body.  
  
=== Shot Types: ===
 
  
 
.shoot ----- Makes me shoot a particle from my front end(usually).
 
 
.shootval ----- Defines the value of the particle shot with the shoot command.
 
 
.backshot ----- Any non zero value here makes me shoot backwards instead of forward. Neat huh?
 
 
Syntax. (50 .shoot store) will store a value of 50 in my memory location 7 (.shoot)
 
The value stored in .shoot defines the memory location in which it will strike its target. The value stored in .shootval will be transferred into that memory location when the shot hits another robot A number of specific negative numbers can be used with .shoot.
 
 
--------------------------------------------------------------------------------
 
  
 
== Defenses and Attacking ==
 
== Defenses and Attacking ==
 
For 2.36 and later, check out [[How defenses and attacks work]]
 
For 2.36 and later, check out [[How defenses and attacks work]]

Revision as of 08:27, 30 January 2006

The .shoot command is one of the most vital in DB. With it a bot can feed, dispose of waste, shoot poison or venom, and affect another bots memory.

Sysvars:

Shooting:

.shoot 7 .shootval 8
.kills 220
.backshot 900 .aimshoot 901

Basics

Whenever a non zero value is stored in .shoot, a shot is produced. This shot by default fires directly along the bot's eye's vector (that is, which direction it's looking). The shot's basic strength and range are determined by a bot's body.


Defenses and Attacking

For 2.36 and later, check out How defenses and attacks work