Author Topic: Is this possible?  (Read 2367 times)

0 Members and 1 Guest are viewing this topic.

Offline blackdevil0742

  • Veteran
  • *****
  • Posts: 1061
  • Don't Panic
Is this possible?
« on: October 13, 2007, 05:18:17 pm »
Is it  possible to make a script where you use a command for:

/maximum strength = berserker
(When full jet)
Drains the jet overtime and lasts only 2 sec (until jet is 0).

/maximum armor = vest
(When full jet)
Uses the all the ammout of jet for a vest that lasts 5 sec.

/cloak = predator
(When full jet)
Drains the jet overtime and lasts 4 sec (until jet is 0).

/maximum speed = speed script
(When full jet)
Drains the jet overtime and lasts 3 sec (until jet is 0).

These are supposed to be used for a short time and I was thinking that you could use the jet ammout for this as it refills overtime. (call it energy in my mod)

OBEY!!!

Offline andrelie

  • Camper
  • ***
  • Posts: 384
  • Im sorry for the spamming...
Re: Is this possible?
« Reply #1 on: October 13, 2007, 05:26:06 pm »
i guess its possible, everything is possible with scripting :D
but if you asked if i could make one... then i guess its a big NOOOO WAY!!! (dont understand ANYTHING when im looking on scripts!!)
Im sorry for the spamming...

Offline Toumaz

  • Veteran
  • *****
  • Posts: 1906
Re: Is this possible?
« Reply #2 on: October 13, 2007, 05:26:52 pm »
Nope, the amount of jet fuel can't be modified. Nor can you hand out bonuses that only lasts for a certain amount of time.

Offline blackdevil0742

  • Veteran
  • *****
  • Posts: 1061
  • Don't Panic
Re: Is this possible?
« Reply #3 on: October 13, 2007, 05:35:36 pm »
aw crap.
Is it possible to decide by how much of the un modified jet fuel to decrease?

Is it possible to make a script that gimmicks the bonuses that have a set time and drain the jet fuel to 0 when used?


OBEY!!!

Offline Aquarius

  • Soldier
  • **
  • Posts: 234
Re: Is this possible?
« Reply #4 on: October 13, 2007, 05:56:10 pm »
Why won't you look at http://enesce.com/help/ and read what's possible and what is not.

Offline blackdevil0742

  • Veteran
  • *****
  • Posts: 1061
  • Don't Panic
Re: Is this possible?
« Reply #5 on: October 13, 2007, 06:29:40 pm »
Thanks Aquarius.
Now I know how I could do it to use them but I couldn't find any specific functions for invisibility, berserker etc. Though it should be possible as I think Avarax uses something similar..at least invisibility.

OBEY!!!

Offline Aquarius

  • Soldier
  • **
  • Posts: 234
Re: Is this possible?
« Reply #6 on: October 14, 2007, 01:50:30 am »
There is no special function for bonuses, you simply spawn a box with bonus at the player position (SpawnObject function).

Offline blackdevil0742

  • Veteran
  • *****
  • Posts: 1061
  • Don't Panic
Re: Is this possible?
« Reply #7 on: October 14, 2007, 05:04:47 am »
OK, Thanks.

OBEY!!!

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Is this possible?
« Reply #8 on: October 14, 2007, 09:39:20 am »
There is no special function for bonuses, you simply spawn a box with bonus at the player position (SpawnObject function).
There is a GiveBonus procedure thats undocumented.. guess and check to see what numbers to use, but i believe the parameters are something like GiveBonus(ID, Bonus: byte); either that or i got bonus and id backwards..

Offline Aquarius

  • Soldier
  • **
  • Posts: 234
Re: Is this possible?
« Reply #9 on: October 14, 2007, 11:21:07 am »
I'm not sure but AFAIR it's undocumented because it's buggy and can cause problems on servers.

Offline Avarax

  • Veteran
  • *****
  • Posts: 1529
    • Official Hexer & MMod site
Re: Is this possible?
« Reply #10 on: October 14, 2007, 06:39:48 pm »
I'm not sure but AFAIR it's undocumented because it's buggy and can cause problems on servers.

EnEsCe one day said something on IRC like "I'll bring GiveBonus back because its unstableness has been fixed". I use it in Hexer and it works fine all the time.
I like to have one Martini
Two at the very most
Three I'm under the table
Four I'm under the host

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: Is this possible?
« Reply #11 on: October 14, 2007, 09:26:09 pm »
Yeah I think it works fine now (2.6.2+) but I haven't remembered to document it properly.

Offline blackdevil0742

  • Veteran
  • *****
  • Posts: 1061
  • Don't Panic
Re: Is this possible?
« Reply #12 on: October 15, 2007, 12:31:29 am »
Do it then ::)
I want to start looking at scripting when I'm about to finish my mod.

OBEY!!!

Offline Kavukamari

  • Camper
  • ***
  • Posts: 435
  • 3.14159265358979, mmm... pi
Re: Is this possible?
« Reply #13 on: October 15, 2007, 12:48:06 pm »
is there a "time" constant in GiveBonus? is there a function to end the bonus's powerup?
"Be mindful of fame, show a mighty courage, watch against foes. Nor shalt thou lack what thou desirest, if with thy life thou hast comest out from that heroic task."

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Is this possible?
« Reply #14 on: October 15, 2007, 05:15:09 pm »
is there a "time" constant in GiveBonus? is there a function to end the bonus's powerup?
no, no
can't say how long a bonus will last neither..

hey enesce, why does GiveBonus exclude medkits? it would be... less armor modifying if it did and u wanted to heal somebody through scripting :P

Offline Kavukamari

  • Camper
  • ***
  • Posts: 435
  • 3.14159265358979, mmm... pi
Re: Is this possible?
« Reply #15 on: October 21, 2007, 05:46:13 pm »
I think this is a (kinda) good list of givebonus bonuses is it complete?

<1 = reload
1 = Pred
2 = berserker
3 = vest
4 = nades
5 = cluster nades
>5 = reload

what about flamer? (or at least flame god) I could probably code it to spawn a flame god and hold the players weapon to reset...
"Be mindful of fame, show a mighty courage, watch against foes. Nor shalt thou lack what thou desirest, if with thy life thou hast comest out from that heroic task."

Offline TAzZ-BOT

  • Major(1)
  • Posts: 25
  • lol SOLDAT DA BOMB. I MAKE SONG ABOUT IT!
Re: Is this possible?
« Reply #16 on: October 27, 2007, 03:32:25 pm »
I would say for the jetpack fuel. Just modify the Map
Hey i make music. Will you get a room with me now? LOL