Iogurte de Diospiro
Guest
|
Post by Iogurte de Diospiro on Jan 30, 2014 23:54:46 GMT
Just want to know if it possible to make a trigger that when triggered by a weapon, the weapon itself is killed from the game. I'm trying to make a grenade war, and have triggers to give grenades to players, but with so many players receiving grenades, it crashes the game...
|
|
|
Post by Zeph on Jan 31, 2014 3:29:11 GMT
trigger multiple Flags: "physics" Output: OnStartTouch -> !activator -> kill
|
|
Iogurte de Dióspiro
Guest
|
Post by Iogurte de Dióspiro on Jan 31, 2014 19:37:41 GMT
trigger multiple Flags: "physics" Output: OnStartTouch -> !activator -> kill Doesnt work... If I create a trigger_remove with the same output that you said, the only thing that remove is the grenade when thrown and what i want is both, when thrown and not thrown. When is a world model...
|
|
|
Post by Zeph on Jan 31, 2014 20:24:32 GMT
Thrown? Dropped? Carried?
Thrown and Dropped should work via the trigger. Carried needs a trigger_weapon_strip
|
|
iogurte de diospiro
Guest
|
Post by iogurte de diospiro on Jan 31, 2014 21:03:05 GMT
Thrown? Dropped? Carried? Thrown and Dropped should work via the trigger. Carried needs a trigger_weapon_strip Neither thrown and dropped work as you said Only work the thrown and with trigger_remove onstarttouch !activator kill Flags: everything
|
|
Iogurte de Dióspiro
Guest
|
Post by Iogurte de Dióspiro on Jan 31, 2014 21:10:03 GMT
Actually, the thrown works...
|
|
Iogurte de Dióspiro
Guest
|
Post by Iogurte de Dióspiro on Feb 3, 2014 0:37:36 GMT
Actually, the thrown works... Why the trown works and the drop dont?
|
|
|
Post by Zeph on Feb 3, 2014 11:12:36 GMT
Ok try this.
Create a Point_ServerCommand called "PSC". Then a logic_timer with the following
Logic_Timer Refire Interval: 5 (sec) OnTimer -> "PSC" -> Command -> "ent_remove_all weapon_hegrenade" -> Delay -> 0.00 OnTimer -> "PSC" -> Command -> "give weapon_hegrenade" -> Delay -> 0.10
This will remove all he grenades (even the ones the player is holding - may interrupt throw) then spawn in a new one per player, every 5 second.
|
|
Iogurte de Dióspiroo
Guest
|
Post by Iogurte de Dióspiroo on Feb 8, 2014 15:59:54 GMT
Ok try this. Create a Point_ServerCommand called "PSC". Then a logic_timer with the following Logic_Timer Refire Interval: 5 (sec) OnTimer -> "PSC" -> Command -> "ent_remove_all weapon_hegrenade" -> Delay -> 0.00 OnTimer -> "PSC" -> Command -> "give weapon_hegrenade" -> Delay -> 0.10 This will remove all he grenades (even the ones the player is holding - may interrupt throw) then spawn in a new one per player, every 5 second. Doing that i have to remove the trigger-multiple to give the grenades?
|
|
Iogurte de Dióspiro
Guest
|
Post by Iogurte de Dióspiro on Feb 8, 2014 16:25:20 GMT
Ok try this. Create a Point_ServerCommand called "PSC". Then a logic_timer with the following Logic_Timer Refire Interval: 5 (sec) OnTimer -> "PSC" -> Command -> "ent_remove_all weapon_hegrenade" -> Delay -> 0.00 OnTimer -> "PSC" -> Command -> "give weapon_hegrenade" -> Delay -> 0.10 This will remove all he grenades (even the ones the player is holding - may interrupt throw) then spawn in a new one per player, every 5 second. "Can't use cheat command ent_remove_all in multiplayer, unless the server has sv_cheats 1" It need cheats? :S I only want to remove the grenades that touch the trigger bellow the players... The trigger_remove do half the job, it kills the grenades that are thrown to there, but the ones that the player receive when he already have one it doesn't. The dropped ones...
|
|
|
Post by Zeph on Feb 9, 2014 13:37:02 GMT
I tried for a while to remove those objects. Couldn't get it to work. Scripts were the only way i came up with.
|
|