
aco
Joined: Nov 4, 2009
|
Posted: Nov 5, 2009 11:29 PM
Msg. 1 of 10
i made this new weapon, and it will have no fire power .. but i wanna make it so if anyone crosshairs you they will die instantly .. any ideas on how this can be done? i know im asking much here whaha, but if you know or think of some posible way .. let me know // thanks
|
|
|

Bloody Jabs
Joined: Apr 7, 2009
It's been 4 years...
|
Posted: Nov 8, 2009 09:35 PM
Msg. 2 of 10
Quote: --- Original message by: aco i made this new weapon, and it will have no fire power .. but i wanna make it so if anyone crosshairs you they will die instantly .. any ideas on how this can be done? i know im asking much here whaha, but if you know or think of some posible way .. let me know // thanks I'm pretty sure it can be done. Actually all you'd have to do is pretty much mimic the cheat_medusa cheat, but I'm not really the one who does stuff with weapons, I mostly a mapper or I will occasionally rip maps mod them in sapien (barely mod, just when I'm extremely bored).
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Nov 8, 2009 10:14 PM
Msg. 3 of 10
Scripting pseudocode:
If player is holding weapon Set boolean x true Sleep until player isn't holding weapon Set boolean x false
While x is true If players (except the player holding weapon) can see player Kill enemy player
|
|
|

aco
Joined: Nov 4, 2009
|
Posted: Nov 9, 2009 09:30 PM
Msg. 4 of 10
thanks xD
now need to find someone who does scripts, i got no time to learn it myself
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Nov 9, 2009 09:44 PM
Msg. 5 of 10
I could, but I lack motivation, not to mention time. I'll probably come back to this sometime later.
|
|
|

Sinow
Joined: Apr 22, 2009
Everybody Lies
|
Posted: Nov 9, 2009 11:50 PM
Msg. 6 of 10
(global object_definition " < path of the medusa weapon and its name > ")
(global boolean x)
(script continuous settingx (if ( = (unit_has_weapon_readied " < medusa weapon name > ") 1) (begin (set x 1) (sleep_until ( = (unit_has_weapon_readied " < medusa weapon name > ") 0)) (set x 0) ) ) )
(script continuous weapon_medusa (sleep_until (= x 1)) ( < an unknown script gamma can write for me > ) (sleep_until (= x0)) ( < the opposite of the unknown script gamma can write for me > ) )
Sorry, I'm busy correcting my script for the Crysis shield. Edited by Sinow on Nov 9, 2009 at 11:55 PM
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Nov 10, 2009 12:41 AM
Msg. 7 of 10
@ Sinow: Check your PMs. I've sent you my completed shield script, for your reference.
|
|
|

Sinow
Joined: Apr 22, 2009
Everybody Lies
|
Posted: Nov 10, 2009 01:25 AM
Msg. 8 of 10
I didn't need a script, I got that down. Thing is, I changed a string and somehow I effed it up.
|
|
|

Mythril
- Screenshot Guru -
Joined: Mar 29, 2008
Jeffrey Albert Waldo
|
Posted: Nov 10, 2009 03:07 AM
Msg. 9 of 10
Quote: --- Original message by: aco but i wanna make it so if anyone crosshairs you they will die instantly Sounds like the crosshair only, not whenever you can see them. I suppose you could make a weapon that shoots out a constant projectile, like an invisible, 1hitKO sentinel beam.
|
|
|

aco
Joined: Nov 4, 2009
|
Posted: Nov 10, 2009 12:04 PM
Msg. 10 of 10
thanks :), ill try to get it working
ye death wehn crosshaired, dying from only having someone in sight is too radical dont you think xD
|
|
|