Staredit Network

Staredit Network -> Modding Assistance -> weapons
Report, edit, etc...Posted by Yarry on 2005-09-16 at 00:16:25
helpsmilie.gif i want to give units in the game 2 weapons, each with different reload times, but heres the thing, they both attack ground and air, and they have different ranges eg: give a marine a sniper rifle that does 150 con., reload is about a minute, with a range of 8-10, the other weapon is going to be a laser shotgun, 4 lasers, each do 12, reload rate is about 20 seconds(was going to use the ghosts rifle for projectile but it wont work with halo weapon type)

(note: i had gotten a goliath to fire missle pods then use machine guns on a different test mod, making it fire air as its attack and ground as its repeated)

Thanks in advanced
Report, edit, etc...Posted by Voyager7456(MM) on 2005-09-16 at 06:42:33
You can have it so that the unit uses different weapons depending on range...

In IceCC there's a trgtrangecondjmp command, which jumps to a different offset for different ranges.

CODE

...
wait            1
playfram        0x22 # frame set 2
trgtrangecondjmp 64 local05
...

(example code taken from Terran Doom, hope BSTRhino doesn't mind.)


It will jump if target is 64 units away, to the offset local05. (Not sure what the units are though... unsure.gif)

Report, edit, etc...Posted by Yarry on 2005-09-16 at 10:04:39
i cant use icecc, can it be done with normal ice?
Report, edit, etc...Posted by BroodKiller on 2005-09-17 at 09:32:45
It can be done, but the app may mess the opcodes up....:/
Report, edit, etc...Posted by Staredit.Net Essence on 2005-09-30 at 16:48:00
thats a pretty cool effect and idea, hmmm i might start learning how to mod
Report, edit, etc...Posted by BroodKiller on 2005-10-01 at 11:21:44
True....true. Weapon and damage effects are of the most fun things to do in SC modding nowadays, and they're relatively simple so you can learn them very easily,
Next Page (1)