Trigger_ammo for one type of weapon.


(BaronBlabla) #1

I’ve got a question about trigger_ammo. Is there a script for one type of ammo only without using a weapon?

Baron


(Flippy) #2

Erm… come again?

Sorry I have no idea what you mean :stuck_out_tongue:

A script for one type of ammo, without using a weapon?
How can you get ammo for no weapon?


(Qexpres) #3

I think he means whether you can retrieve a certain type of ammo (like MP40 bullets) without having to spawn a gun model or such. So just the trigger_ammo stuff.

I don’t know how that can be done, though.


(BaronBlabla) #4

Yes, that’s what I meant, sorry for my unclearness… :shock:


(Flippy) #5

So you want to be able to make something that will give ammo only to one type of weapon, and not the other?
I’m afraid that’s not possible… ET just doesn’t work that way and there’s no way around things like this without creating a mod.

Just like an ammo crate dropped by a fieldops gives you ammo for everything, so does the trigger_ammo entity aswell. They are basically the same thing.


(mazdaplz) #6

you can try to give only one class ammo, by having a trigger multiple
and selecting a class, then using that as your statement to trigger on the ammo thing for a second, just position the trigger_ammo in a way that only 1 person can reach it

that way it will appear as if it only was giving the covert ops weapons ammo, for example


(Flippy) #7

That could be used as a work around, yes, but it’s still not what he asks.

Your way can be used to give only a certain class ammo, not a certain weapon.
You could get into weird situations where for example if an engineer is using a thompson he could get ammo, while a medic with a thompson cannot…


(BaronBlabla) #8

But can’t I do this:

Make for example a weapon_thompson, and try to get a way of not using the model but using a trigger, and then also have some kind of script that disables picking it up?


(McGriddles) #9

or instead of making a script to where you cant pick it up, maybe set it to where the gun, or entity, respawns instantly after it is taken (if thats possable in radiant).


(RayBan) #10

i havent tried this, but it may be possible to use a trigger_multiple set to
trigger a specific class, and target a target_give, which should then
target a weapon…

you would need to get the def files that have more entities from here,
http://www.splashdamage.com/forums/viewtopic.php?t=6243&highlight=rtcw+entitys

now again, i havent tried this but it might work.