[Resources] Script Library

This forum is for uploading new building blocks for maps such as tags and new models. Please do not post any copyrighted material (ie, models/textures from other games).
User avatar
latinomodder





Posts: 1040
Joined: Tue Sep 20, 2005 5:51 pm
Location: Costa Rica

Post by latinomodder »

-DeToX- wrote:Fixed Latinomodders script:

Code: Select all

(script continuous Sputnik
  (begin
(sleep_until (unit_has_weapon <scriptunit> objects\weapons\multiplayer\ball\ball.weap) (unit_has_weapon <scriptunit>  objects\weapons\multiplayer\ball\ball.weap) 1)
(physics_set_gravity 0.5)
(print "Sputnik")
  )
)
It will Set the gravity as 0.5 when the oddball is picked up. Where it says <scriptunit> you replace it with your actual script unit
Thanks :D can you explain a little in depth why that will work?
Image
-DeToX-




Illusionist Recreator Connoisseur Acolyte
Sigma Decryptor Droplet Pyre
Blacksmith Socialist New Age System Engineer
ONI

Posts: 4589
Joined: Sun Jun 18, 2006 3:58 pm
Location: ...

Post by -DeToX- »

PyroBlizzard wrote:So could u make that so if i went a certain area in a MP level say..(foundation room1) it would teleport me to the center of the map?
It Could, Along with Vehicles and all. Any object.
Image
User avatar
latinomodder





Posts: 1040
Joined: Tue Sep 20, 2005 5:51 pm
Location: Costa Rica

Post by latinomodder »

Code: Select all

(script continuous ai_get_ani
  (begin
(sleep_until (or (unit_has_weapon <scriptunit> objects\weapons\multiplayer\ball\ball.weap) (unit_has_weapon <scriptunit>  objects\weapons\multiplayer\ball\ball.weap))) 
(custom_animation_loop (ai_get_unit yur_squad) objects\characters\marine\x02\x02 marine_whistle_loop True)
)
replace "yur_squad" with your own squad.
replace char with the one you want (objects\charactes\marine\x02\x02)
Then the "marine_whistle_loop" is the animation you want.

Fixed the sputnik part
Fixed thanxs to SOL over aim
Fixed again thanx to SOL, dam i should use the uber constructor
Last edited by latinomodder on Fri Nov 03, 2006 8:49 pm, edited 4 times in total.
Image
Soldier of Lite




Coagulator Pi Miner Wordewatician 50

Posts: 98
Joined: Tue Feb 21, 2006 7:39 pm

Post by Soldier of Lite »

latinomodder wrote:
-DeToX- wrote:Fixed Latinomodders script:

Code: Select all

(script continuous Sputnik
  (begin
(sleep_until (unit_has_weapon <scriptunit> objects\weapons\multiplayer\ball\ball.weap) (unit_has_weapon <scriptunit>  objects\weapons\multiplayer\ball\ball.weap) 1)
(physics_set_gravity 0.5)
(print "Sputnik")
  )
)
It will Set the gravity as 0.5 when the oddball is picked up. Where it says <scriptunit> you replace it with your actual script unit
Thanks :D can you explain a little in depth why that will work?
It wouldn't. The fixed fixed version would be:

Code: Select all

(script continuous Sputnik
  (begin
(sleep_until (or (unit_has_weapon <scriptunit> objects\weapons\multiplayer\ball\ball.weap) (unit_has_weapon <scriptunit>  objects\weapons\multiplayer\ball\ball.weap)))
(physics_set_gravity 0.5)
(print "Sputnik")
  )
)
EDIT: I was missing a ).
Last edited by Soldier of Lite on Fri Nov 03, 2006 8:31 pm, edited 1 time in total.
Image
-DeToX-




Illusionist Recreator Connoisseur Acolyte
Sigma Decryptor Droplet Pyre
Blacksmith Socialist New Age System Engineer
ONI

Posts: 4589
Joined: Sun Jun 18, 2006 3:58 pm
Location: ...

Post by -DeToX- »

Thanksss.
Image
Soldier of Lite




Coagulator Pi Miner Wordewatician 50

Posts: 98
Joined: Tue Feb 21, 2006 7:39 pm

Post by Soldier of Lite »

I'd appreciate it if you guys would use the constructor to write your scripts. Your scripts keep coming out with bad parenthesis and such. The constructor forces you to use the right syntax and arguments.
Image
User avatar
snakejknight




Trickster Wave Pyre Wordewatician 500

Posts: 693
Joined: Sun Jun 04, 2006 1:00 pm
Location: North Hollywood California

Post by snakejknight »

tried entity's compiler and it didn't work :(
-DeToX-




Illusionist Recreator Connoisseur Acolyte
Sigma Decryptor Droplet Pyre
Blacksmith Socialist New Age System Engineer
ONI

Posts: 4589
Joined: Sun Jun 18, 2006 3:58 pm
Location: ...

Post by -DeToX- »

I talked to Snakejknight... It only had an error because he didnt change <scriptunit> like I said. :P
Image
Soldier of Lite




Coagulator Pi Miner Wordewatician 50

Posts: 98
Joined: Tue Feb 21, 2006 7:39 pm

Post by Soldier of Lite »

I designed the script tools to give you (more) descriptive errors to help you correct the problem. I have a feeling the problem was that he used .weap instead of .weapon, so the compiler couldn't find the object he was referring to.
Image
VitaminMODS





Posts: 107
Joined: Wed Sep 20, 2006 1:59 pm
Location: Queen City, Canada

Post by VitaminMODS »

someone should sticky this, its very usefull.
Image
slayer410





Posts: 738
Joined: Mon Oct 03, 2005 1:41 pm
Location: Texas

Post by slayer410 »

A suggestion-
Allow requests.
-DeToX-




Illusionist Recreator Connoisseur Acolyte
Sigma Decryptor Droplet Pyre
Blacksmith Socialist New Age System Engineer
ONI

Posts: 4589
Joined: Sun Jun 18, 2006 3:58 pm
Location: ...

Post by -DeToX- »

We aren't stopping you from requesting.
Image
smacktalker




Trickster Commentator Wordewatician 500

Posts: 935
Joined: Sat Feb 25, 2006 4:23 am
Location: Europe. as in i'm speaking broken english coz i'm polish :D

Post by smacktalker »

is it possible through script to make a certain ai squad follow you, like the marines do in singleplayer? if so i'd like a script for that. :)
Halo 2 Modder&Player,XBC:Ownagemaster.
Mainmenu mod-=-Spacestation Deck-=-Conduit-=-Waterworld-=-South Side
Image
Visit headshotmasta his new site! (Click burning insolence)
User avatar
Munsie




Blacksmith

Posts: 1485
Joined: Mon Aug 29, 2005 11:07 am
Location: Canada

Post by Munsie »

-DeToX- wrote:
PyroBlizzard wrote:So could u make that so if i went a certain area in a MP level say..(foundation room1) it would teleport me to the center of the map?
It Could, Along with Vehicles and all. Any object.
Way to ruin all my fun. >_>

Will you be updated the first post with all of them...?

~Munsie
User avatar
TheTyckoMan




Artisan Socialist Decryptor Droplet

Posts: 854
Joined: Fri Apr 02, 2004 11:22 am
Location: Tea co not Tie co...

Post by TheTyckoMan »

This topic belongs in the tags and resources section. I will move it in or around 24 hours from now...actually I can't do that because I'll be at work....hmmm.... :?
Sweetness.......Visual Security: 9-block IP Identification
"Teenagers, plus anonymity, plus microphone = idiot."-Bungie
Punk Rock0905




Miner

Posts: 169
Joined: Sat Feb 26, 2005 3:05 pm
Location: halopatch.com

Post by Punk Rock0905 »

Not to take anything from this topic, but my friend TheGarbageMan made this a while back. http://haloscripts.badrouter.net/ I think it would be much neater and more organized than posing it all in a topic.
Image
-DeToX-




Illusionist Recreator Connoisseur Acolyte
Sigma Decryptor Droplet Pyre
Blacksmith Socialist New Age System Engineer
ONI

Posts: 4589
Joined: Sun Jun 18, 2006 3:58 pm
Location: ...

Post by -DeToX- »

Punk Rock0905 wrote:Not to take anything from this topic, but my friend TheGarbageMan made this a while back. http://haloscripts.badrouter.net/ I think it would be much neater and more organized than posing it all in a topic.
But this topic is also requests, Fixing scripts, Etc.. What if someone posts a bad script on your website. And there is help given here for fixing scripts...
Image
User avatar
Benjyp





Posts: 209
Joined: Mon May 23, 2005 10:25 am
Location: Right behind you!!!!

Re: [Resources] Script Library

Post by Benjyp »

-DeToX- wrote:everyone will be able to use pubically for their mods
Does that mean we can only use them in our pants?
Prodigy





Posts: 73
Joined: Sun Aug 13, 2006 8:27 am

Re: [Resources] Script Library

Post by Prodigy »

Benjyp wrote:
-DeToX- wrote:everyone will be able to use pubically for their mods
Does that mean we can only use them in our pants?
funny how just one letter can make all the difference...
-DeToX-




Illusionist Recreator Connoisseur Acolyte
Sigma Decryptor Droplet Pyre
Blacksmith Socialist New Age System Engineer
ONI

Posts: 4589
Joined: Sun Jun 18, 2006 3:58 pm
Location: ...

Post by -DeToX- »

Lol I meant Publically. :P
Image
Post Reply