Very Important! ;p

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
knuko
Lance Corporal
Posts: 19
Joined: Tue Feb 15, 2005 10:20 am

Very Important! ;p

Post by knuko »

Hi dudes,

TIKI
setup
{
scale 0.52
path models/items/ammo_boxes
skelmodel grenade_box.skd
surface all shader grenade_box
}

init
{
server
{
classname AmmoEntity
name grenade
amount 5
dmamount 5
}
}

animations
{
idle grenade_box.skc
}

/*QUAKED item_ammobox_grenade (0 0 0) (0 0 0) (0 0 0)
Mark II Frag
Stielhandgranate
*/


How do I set this in MOHDM6.SCR??? please help me (ik ben kansloos :roll: /color]
I know how to find the coords BUT i dont know how to type this in mohdm6.scr?? somthing like thread blabla.. i can make boxes :D thats all but thats a script i have read @ internet :P!!!
Hey, i gonna learn scripting :)
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

you dont set a TIKI in a script, you set that in a different pk3 in main. main>models>weapons>.tik

but you should put it in a pk3 for organization and releasing reasons ;)
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
knuko
Lance Corporal
Posts: 19
Joined: Tue Feb 15, 2005 10:20 am

Post by knuko »

but how can place it in stalingrad server.. it doesnt know what the coords are :D :lol: :lol:
Hey, i gonna learn scripting :)
Green Beret
Major General
Posts: 746
Joined: Mon Apr 19, 2004 12:21 pm
Contact:

Post by Green Beret »

if your wanting to add grenade ammo boxes on the map,just spawn them

Code: Select all

                       level waittill spawn
//ammo_box-----------------------------------------------------------------
local.ammo_box = spawn script_model targetname grenade_ammo
local.ammo_box model "models/items/item_grenade_ammobox.tik" 
local.ammo_box.origin = ( xxx.xx xxx.xx xxx.xx ) //<--coords
local.ammo_box.angles = ( 0 0 0 )

end
if not,edit the shader/tik file that deals with grenades and put it in a folder named exactly what the file name you editing is.and you just cant stick it in the main folder and hope it works.
main>models>weapons>nameoftik.tik
whats the name of the .tik your editing ?
Image
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

i think he just wants to place a grenade somewhere,


Code: Select all

spawn item/ammobox/grenade.tik "origin" "x y z"
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

if you dont specify an angle for an object does it set it to 0 0 0 default?
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

yes. it sets all params to default, origin to 0 0 0, angles to 0 0 0, $targetname to whatever it is, liek t1 t2 t3 and all that.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

so if you dont specify the $targetname of an entity you spawn, and there are no other enities in the map, the things $targetname is $t1?
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Nah, if you don't set a targetname yourself the entity just doesn't have it.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Post Reply