Code center > Bug reports
Touch senses ain't workin. RESOLVED (NO BUG)
Testlund:
Simply put; How would somebody write a simple hunter that uses touch references instead of eye references?
Commander Keen:
There are some sysvars that change when you hit something. hitup hitdn hitsx and hitdx I think, it was something like that.
EDIT: Checked the wiki, there are 5 sysvars: hit, hitup, hitsx, hitdx and hitdn.
Numsgil:
Take animal minimalis and try removing lines that compares *.eye5 to anything. The resultant bot won't be prefect, but it should be able to feebly feed itself rather stupidly.
EricL:
As this topic explains in detail, what I did is simply to populate the refvars when bots touch.
Try this. It should cause the bot to face and shoot at whatever it touches.
cond
*.refxpos 0 >
start
*.refxpos *.refypos angle .setaim store
-1 .shoot store
stop
Testlund:
Yep, it sure works. Awesome to look at. Thanks for clearing it out, folks.
Navigation
[0] Message Index
[*] Previous page
Go to full version