Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Product Chat / cool effect?

Author
Message
eXone 42zero
17
Years of Service
User Offline
Joined: 31st Oct 2006
Location: 7!9
Posted: 6th Nov 2008 16:28
one of the mods out there probably has this already
i haven't been able to get any of them yet because i've been bogged down in school work

so, i'm thinking i'd like a knife in my game that is one hit kill for ALL ENEMIES except for zombies
i want my zombies will be near impervious to melee attacks
but i don't know if this is possible without a mod

a static "isweapontype=x" condition would do the trick
(by the way, static in a java sense means global )

by the way tell me if this exists already

as a matter of syntax, boolean conditions such as this should begin with "is" so that the programmer has an idea of what he is using without having to look anything up

isweapontype=x
true when the type of the weapon doing damage has the value of x

x = 1 melee
x = 2 pistol
x = 3 automatic
x = 4 shotgun
x = 5 scoped (sniper rifle)

this way, you could define a behavior by the type of weapon used

so a zombie with 100 health would:

:state=1,shotdamage=1,isweapontype=1:addhealth=-5
:state=1,shotdamage=1,isweapontype=2:addhealth=-15
:state=1,shotdamage=1,isweapontype=3:addhealth=-10
:state=1,shotdamage=1,isweapontype=4:addhealth=-90
:state=1,shotdamage=1,isweapontype=5:addhealth=-5

as you can see there is a lot of functionality in this
is there currently a way to do this?

"There's more to life than being really, really, ridiculously good looking." - Derek Zoolander
Cyborg ART
17
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden - Sthlm
Posted: 6th Nov 2008 17:58
Would be quite cool. Maybe have a certain enemy resistant to fire, but not water And vice versa.
It could really rais the thinking in a game.

Errant AI
18
Years of Service
User Offline
Joined: 24th Aug 2006
Location:
Posted: 6th Nov 2008 19:11
Theres a ShotByWeap conditon in Ply's Mod. You should be able to achieve what you ask. More or less.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 6th Nov 2008 23:54
Errant's on the right track.

You can use Ply's Mod to check if the enemy was hit by the knife. If a normal enemy was then you can just "entityaddhealth=-9999". If you put the knife's damage to something like..... 2, you won't even eed to script the zombie for it because it wouldn't do much to them as-is.


(Shouldn't this be in the Scripts board? )


The one and only,


Those who live in the past, are destined to insanity. Those who live only for the future, will be slaves to their ambitions.
Those who live in the moment... only they, are truly happy.
eXone 42zero
17
Years of Service
User Offline
Joined: 31st Oct 2006
Location: 7!9
Posted: 7th Nov 2008 03:04
Quote: "(Shouldn't this be in the Scripts board? )"


yes i suppose so

but i was late and it was tired

or... whatever haha

good idears all
thank you

i guess i should get the mod and go through it and see if it answers my questions before i post them

hmmm

anywho

oh and my game has a title now

my "team" of bums who are helping me with it all got together with me and we came up with a temporary title:

Project: Scream

might ditch the colon
might not

my sound guy said it (how ironic is that) and we were all "oooooohhh daayuummmnn that sounds creepy!"

"There's more to life than being really, really, ridiculously good looking." - Derek Zoolander

Login to post a reply

Server time is: 2024-10-11 17:26:39
Your offset time is: 2024-10-11 17:26:39