UFO:Alien Invasion
General => User modifications => Topic started by: Valis on March 15, 2009, 12:18:50 am
-
I need a little help with one thing I want to do.
Just for fun I wanted to add the Holey Hand Grenade from Antioch to the game. For that I copied the research and the weapon description for the plasma granade. With no modifications to the specs of the granade I wanted to see if it works. When I am testing it the granade is researchable, producable, equipable but I can not get it to pop up the fire mode menus and throw/lob it :/
I am talking here about modding the base 2.2.1. I see there plasma grenade is in a diffrent file than the rest of the weapons I moded in the other thread. Is there something I missed?
For your information I wanted it to have 9 'lob' modes named like 'Lob after1', 'Lob after 2' and s on ;) and only the right one would deal damage :D
-
maybe you forgot to rename the weapon_mod definition inside of the copied plasmagrenade spec? it must have the same name as the item you are trying to create.
-
http://www.youtube.com/watch?v=xOrgLj9lOwk (http://www.youtube.com/watch?v=xOrgLj9lOwk)
-
http://www.youtube.com/watch?v=xOrgLj9lOwk (http://www.youtube.com/watch?v=xOrgLj9lOwk)
Nay, I already consulted this film before posting here aobut it ;)
maybe you forgot to rename the weapon_mod definition inside of the copied plasmagrenade spec? it must have the same name as the item you are trying to create.
I think that was the only one line I did not check :/ Now it works and I will post it later afternoon. The blast is not so fun to look at, are there any other animations for the blast I could use, for example the rocket launcher? Will it work with something like a granade?
-
you can even do new particles - see our particle guide on the wiki
-
Wow, nice. I will have to dig into that on the weekend.
Another question then:
For now I modify game files.
1. Can I add new files to the game?
2. Also, can files have mixed content? For example can a file contain research and weapon definition.
I aim at the goal of only adding file sets that could complement each other so for example someone who wants to incorporate 2 mods into the game does not have to merge the files. It would also the more secure not to mingle with the orginal files.
-
1.) yes
2.) yes
it would be nice if you would do a seperate pk3 file (zip file) with all the files you added.
-
Do you mean I can add any files with the extention 'ufo' and they will be 'precompiled' into the game on startup? That would be great. I will rearange my MODs asap.
-
Scripts aren't compiled, they're just parsed.