Page 1 of 1
Can a weapon affect the user?
Posted: Sat Jul 15, 2006 4:28 pm
by RC-1290
Is it possible to let a weapon, for example, make a unit go slower? Possibly by using other code methods?
Rc-1290'Dreadnought'
Posted: Sat Jul 15, 2006 5:12 pm
by -_-
I dont think so. Afterall, all the speeds are listed in the odf of the infantry class. You could always try moving those speeds to the weapons and see if it overrides.
Posted: Sat Jul 15, 2006 6:04 pm
by Tohron
This is based of the fact that there's a area-of-effect ability that can increase the energy regeneration rate of units. If you attached that effect to a grenade, and modified it, you would have a grenade that reduces the energy regeneration rate of units. Since units regenerate energy faster when standing still then when they are walking, you could modify the degree to which units are affected so that they would regenerate energy very slowly when standing still and lose energy when walking.
Of course, I have no idea whether this would actually work.
Posted: Sun Jul 16, 2006 10:11 am
by RC-1290
Thank's I'll try using a very short ranged area off effect for effecting speed. But in another topic they seemed to use C++ code(Might be wrong tough), maybe it can be achieved by using c++, am I right?
Posted: Sun Jul 16, 2006 12:50 pm
by Qdin
I'm not sure about that, though - I think the .lua Scripts are using the C++, or am I wrong? (I don't know that much to sripts xD)
but I would probably do as -_- said

and see if it overrides the old speeds; would help a lot for many and add new possibilities

Posted: Sun Jul 16, 2006 2:02 pm
by [RDH]Zerted
The game seems to be written in C++. The C++ code calls the Lua scripts it wants to run/process. All modding should be done in Lua.