Moving block_path/block_radius

Moderator: Moderator

Post Reply
Message
Author
yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

Moving block_path/block_radius

#1 Post by yufra »

This idea came from talking with tiger_eye while he worked on this: http://forums.te4.org/viewtopic.php?f=4 ... 61&start=0

Currently if you want to modify the behavior of block_path/block_radius you can drop in an entirely new function easily, but if you just want to TWEAK the original it can become complicated and either you end up copying/pasting or creating a dummy target type to grab the original function. I suggest moving the default block_path/block_radius functions into the engine.Target namespace, and referring back to those functions in Target:getType. That way you could call engine.Target.default_block_path from somewhere else. Thoughts?

EDIT: I didn't post a patch since I know tiger_eye's patch isn't in the SVN yet. I can post one after those changes go in if you want.
<DarkGod> lets say it's intended

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Moving block_path/block_radius

#2 Post by darkgod »

You have to make sure this wont bork when saving with projectiles in the air but it shouldbe good
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

Re: Moving block_path/block_radius

#3 Post by yufra »

Good point... stupid projectiles! :D
<DarkGod> lets say it's intended

Post Reply