Can a weapon affect the user?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
RC-1290

Can a weapon affect the user?

Post 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'
-_-
Gametoast Staff
Gametoast Staff
Posts: 2678
Joined: Sat May 07, 2005 1:22 pm

Post 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.
Tohron

Post 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.
RC-1290

Post 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?
Qdin
Old School Staff
Posts: 2059
Joined: Wed Feb 23, 2005 9:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post 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 :wink:
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Post 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.
Post Reply