Half-Life Spirit [closed] Created 19 years ago2005-05-18 11:27:50 UTC by bigbangofpayam bigbangofpayam

Created 19 years ago2005-05-18 11:27:50 UTC by bigbangofpayam bigbangofpayam

Posted 19 years ago2005-05-18 11:27:50 UTC Post #109982
O.K Here's a topic about half-life spirit and you can talk about half-life spirit here...
AND I Have a question too: and Thats It:
I have a grunt model,a v_pistol model and a p_pistol Model
I Want to modify my pistol's power.
And after that I want a grunt that have my pistol and when he see me he try to kill me and when i kill him he drops my pistol and i can take it!!!!!!!!!!!!!!!!!!!!

The Question is: Can I Do This Without Coding???????????
Over.
G
Posted 19 years ago2005-05-18 11:33:39 UTC Post #109983
Yes it can be done, ask Unbreakable or Merc I think.
Habboi HabboiSticky White Love Glue
Posted 19 years ago2005-05-18 11:38:42 UTC Post #109984
I bet you need an animation for it,, so you need to know how to make models, unless you don't want him to hold the gun like an shotgun.. ^^
Madcow MadcowSpy zappin my udder
Posted 19 years ago2005-05-18 11:57:25 UTC Post #109985
I Just Don't Wanna Code.........
Over.
Posted 19 years ago2005-05-18 12:42:04 UTC Post #109992
Life has its easyness and its toughness so sometimes things you want are not easy to get!

Don't fret though because a little studying doesn't hurt anyone!
Habboi HabboiSticky White Love Glue
Posted 19 years ago2005-05-18 13:42:36 UTC Post #109996
G,

Ok, now heres the thing, when importing new models into half-life[not replacing models, but adding] then the models will have to be coded into half-life, although if you have a v_pistol, you can try renaming it to v_9mmhandgun. This is what I would try if I where you, however, sometimes, depending on weapon models, it may have different sequences, and may function incorrectly. If you wanted a more powerful pistol, replace the v_357 model. This is giving you different skins, but really it's just replacing the models.
Now, importing them in spirit. You see the Spirit.dll is just like the original hl.dll, except with added features, and unfortunetly theres no new feature to add weapons without coding. You would have to code the new model into the spirit.dll. As mentioned in the Xen Assault thread, we tried getting around this with grunt models, and even though we coded the model into the spirit.fgd so that it could appear in Hammer, once compiled, We got an error 'Can't Innitiate monster_human_grunt.'
This is because it was not coded in the dll. This is the same thing that happens with weapons as well, but it just gets looked upon from a different angle. So modifing your pistols power could be fixed by replacing it with the v_357, and p_357, so it has the same power as the 357, only doesn't look like a 357.

That said, you were asking about having the grunt carry your weapon. Then drop it once dead. This is a bit more tricky, and may need to be coded. Another option that you can try is by using the monstermaker entity, and the 'Move With' function found as a new option in spirit.
I've never tried anything like this but I think it could be done.

First check to see if the monstermaker entity has this function (move with) If it does put the name of the grunt in that field, so that the monstermaker follows the grunt around, then set the grunts 'killtarget' to the monstermaker so when the grunt dies, it triggers the monstermaker to spawn the pistol.

This function is not really solid however. For example for an env_sprite, or env_ladder to move with a function train, it will have to be triggered at the same time as the func_train, then the sprite will move along with the func_train...
Now, the thing is, if we were to do this with the monstermaker, it may not move with the grunt, hence, when the grunt is killed, the weapon will be spawned elsewhere, Or if you where to trigger the monstermaker to move with the grunt, it might just spawn the weapon. I'm sorry I can't be of much help.. but any further questions, I'm willing to help.

~Unbreakable

Good Luck!
Unbreakable UnbreakableWindows 7.9 Rating!
Posted 19 years ago2005-05-18 15:40:10 UTC Post #110005
Glad I caught your attention :P
Habboi HabboiSticky White Love Glue
Posted 19 years ago2005-05-18 15:52:19 UTC Post #110012
you accually can just replace the model of an existing weapon(if desired) then edit its power in one of the config files in the .pac files.
Posted 19 years ago2005-05-19 01:19:28 UTC Post #110064
Thank's For Everything

Over and Out.
Posted 19 years ago2005-05-19 13:46:48 UTC Post #110143
Either "out" or "over". "Over" means you expect a reply, and "out" means you don't. It's a contradiction. Nobody in aviation or the military will ever say "over and out".

Unless they were taking the piss Roger(ed: Andy)
Seventh-Monkey Seventh-MonkeyPretty nifty
You must be logged in to post a response.