UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Custom actors... How?

HOT
broken avatar :(
Created 7 years ago
by artsergo
0 Members and 1 Guest are viewing this topic.
6,091 views
broken avatar :(
×
broken avatar :(
Location: rusiberia
Date Registered: 3 January 2017
Last active: 7 years ago
Posts
78
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Goodluck for all !
Signature
Believe in your strength, anytime, anywhere!
Only you can force yourself to change something in your life!
But In general, the world itself is beautiful if  you be optimist :)
×
artsergo's Groups
artsergo's Contact & Social Linksartsibsergeiartsergoartsergo
Hi everybody!  :)

Anybody can help me with the moment.  ::)
I have idea.. want make allies spawning as custom heads, helms, body and weapons.
how to spawning soldiers with different heads, different  helms, different uniforms
and different weapons (singleplayer).

For example, we have chosen the list:
- Selected xmodel weapons and equipment for the soldiers:
of 1 gun, 2 type of machine guns, 2 rifles, flame thrower and walkie-talkie;
(weapons models: colt, m1garand, thompson, fraggrenade),

- Selected a few types of xmodels heads:
(xmodels heads: char_usa_raider_head1_1, char_usa_marine_head3_4,
 char_usa_marine_head2_2, char_usa_raider_head3_3
),

- Selected a few forms (xmodel of body of fighters):
(xmodels bodyes: char_usa_marine_body1_1, char_usa_raider_body2_1,
char_usa_marine_body2_2,  char_usa_raider_player_body1_1
),

- Selected a few helms (xmodel of helms of fighters):
(xmodels helms: char_usa_marine_helm2, char_usa_raider_helm1,
char_usa_marine_wet_helmm, char_usa_raider_helm3
).

And how I can make for soldiers who spawning, every time
I go over the trigger_multiple then soldiers random spawning
(random: head + helm + body + weapon)
?

Once, long ago, I saw an example work but this been Call of duty 2 only,
and there been used switch script for rain.
however, as make for allies xmodels, then I don't understand anything.

Need a simple and understandable example script how its can make.  ::)
Perhaps someone already has such an example and he can help me with this topic.

-----------------------------------------------------------------------------------------------------------------
With respect, 
Sergei
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
Location: rusiberia
Date Registered: 3 January 2017
Last active: 7 years ago
Posts
78
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Goodluck for all !
×
artsergo's Groups
artsergo's Contact & Social Linksartsibsergeiartsergoartsergo
Maybe  anybody know and can help?  ::)
Last Edit: January 27, 2017, 04:26:50 pm by artsergo
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
Signature
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
You can use the aitype / character and xmodelalias files for that.
Creating a new aitype also create's the spawner in radiant for it if i remember correctly.

Look at an existing 'set' to see how they work, for example:

aitype:    ally_us_raid_reg_m1carbine
character:    char_usa_raider_r_rifle

Inside the character file it shows you the corresponding xmodelalias files.
broken avatar :(
×
broken avatar :(
Location: rusiberia
Date Registered: 3 January 2017
Last active: 7 years ago
Posts
78
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Goodluck for all !
×
artsergo's Groups
artsergo's Contact & Social Linksartsibsergeiartsergoartsergo
Hi.
I.e. in any case it's always made the aitype file already pre sets (head + body)  and use a brute force search is ready file.
I understand correctly?
Ok, thanks.

I try this method and message to you.
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
I.e. in any case it's always made the aitype file already pre sets (head + body)  and use a brute force search is ready file.

No, the model you set in the aitype files is only for the spawner in radiant. In the character-files is where you set the body(parts).

This is an aitype file:  ally_us_raid_reg_m1carbine.gsc

Code Snippet
Plaintext
// THIS FILE IS AUTOGENERATED, DO NOT MODIFY
/*QUAKED actor_ally_us_raid_reg_m1carbine (0.0 0.25 1.0) (-16 -16 0) (16 16 72) SPAWNER FORCESPAWN UNDELETABLE ENEMYINFO
defaultmdl="char_usa_marine_fullbody1"
"count" -- max AI to ever spawn from this spawner
SPAWNER -- makes this a spawner instead of a guy
FORCESPAWN -- will try to delete an AI if spawning fails from too many AI
UNDELETABLE -- this AI (or AI spawned from here) cannot be deleted to make room for FORCESPAWN guys
ENEMYINFO -- this AI when spawned will get a snapshot of perfect info about all enemies
*/
main()
{
self.animTree = "";
self.team = "allies";
self.type = "human";
self.accuracy = 0.2;
self.health = 100;
self.weapon = "thompson";
self.secondaryweapon = "";
self.sidearm = "colt";
self.grenadeWeapon = "fraggrenade";
self.grenadeAmmo = 3;

self setEngagementMinDist( 256.000000, 0.000000 );
self setEngagementMaxDist( 768.000000, 1024.000000 );

character\char_usa_raider_r_rifle::main(); // <----- HERE
}

spawner()
{
self setspawnerteam("allies");
}

precache()
{
character\char_usa_raider_r_rifle::precache(); // <----- HERE

precacheItem("thompson");
precacheItem("colt");
precacheItem("fraggrenade");
}

In this file, a character-file gets mentioned twice:
Code Snippet
Plaintext
	character\char_usa_raider_r_rifle::main();
Code Snippet
Plaintext
	character\char_usa_raider_r_rifle::precache();



If you open that character-file, the first two lines of code should be:

Code Snippet
Plaintext
	codescripts\character::setModelFromArray(xmodelalias\char_usa_raider_bodyalias::main());
self.headModel = codescripts\character::randomElement(xmodelalias\char_usa_raider_headalias::main());


The first line picks a body model from the xmodelalias-file: char_usa_raider_bodyalias.gsc
Code Snippet
Plaintext
// THIS FILE IS AUTOGENERATED, DO NOT MODIFY
main()
{
a[0] = "char_usa_raider_body1_1";
a[1] = "char_usa_raider_body1_2";
a[2] = "char_usa_raider_body2_1";
return a;
}


The second line picks a random head from the xmodelalias-file: char_usa_raider_headalias.gsc
Code Snippet
Plaintext
// THIS FILE IS AUTOGENERATED, DO NOT MODIFY
main()
{
a[0] = "char_usa_raider_head1_1";
a[1] = "char_usa_raider_head1_2";
a[2] = "char_usa_raider_head1_3";
a[3] = "char_usa_raider_head1_4";
a[4] = "char_usa_raider_head2_1";
a[5] = "char_usa_raider_head2_2";
a[6] = "char_usa_raider_head2_3";
a[7] = "char_usa_raider_head2_4";
a[8] = "char_usa_raider_head3_1";
a[9] = "char_usa_raider_head3_2";
a[10] = "char_usa_raider_head3_3";
a[11] = "char_usa_raider_head3_4";
a[12] = "char_usa_raider_head4_1";
a[13] = "char_usa_raider_head4_2";
a[14] = "char_usa_raider_head4_3";
a[15] = "char_usa_raider_head4_4";
return a;
}



And so on. If you have gib models you can set them at the .torsoDmg1, 2, 3 etc.
Only thing you might need to switch after spawning is the weapon, you can fully randomize the models like this.



A quick overview:
-aitype: set spawner and weapons, and tells wich character files to use
-character: create's the characters model, by selecting random models from xmodelalias files
-xmodelalias files: simply a list of available models put in an array

All these files have a .gsc and a .csv version. Make sure you put every model/asset you use in those .csv's to precache them.
Last Edit: January 28, 2017, 12:45:15 pm by BluntStuffy
broken avatar :(
×
broken avatar :(
Location: rusiberia
Date Registered: 3 January 2017
Last active: 7 years ago
Posts
78
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Goodluck for all !
×
artsergo's Groups
artsergo's Contact & Social Linksartsibsergeiartsergoartsergo
 
   hi!
   Ok. Thanks! You great helper!  :)
 
   Artist try to understanding ))))  ;D ::)  artist and designer this is me



Double Post Merge: January 29, 2017, 10:33:59 am
hi!

what is a gib models ? word "gib" no tranlate )  ::)
i us this: https://translate.google.ru
Last Edit: January 29, 2017, 10:35:02 am by artsergo
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
what is a gib models ? word "gib" no tranlate )  ::)
i us this: https://translate.google.ru

models with the arms/legs shot off
broken avatar :(
×
broken avatar :(
Location: rusiberia
Date Registered: 3 January 2017
Last active: 7 years ago
Posts
78
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Goodluck for all !
×
artsergo's Groups
artsergo's Contact & Social Linksartsibsergeiartsergoartsergo
ok.  :)
I think. I have prepared all files.
how next step? how connect this all with my mod-map files?
and what write need and where?   ::)

long I agonized for all this day and try to understanding in the pile of files,
but it is now necessary to connect to the map in somehow  :)
say me please

Double Post Merge: January 29, 2017, 07:07:11 pm
i create files:
1) aitype
ally_us_reg_myallies.csv
ally_us_reg_myallies.gsc
2) character
char_usa_myallies.csv
char_usa_myallies.gsc
3) xmodelalias
char_usa_myallies_bodyalias.csv
char_usa_myallies_bodyalias.gsc
char_usa_myallies_gearalias.csv
char_usa_myallies_gearalias.gsc
char_usa_myallies_headalias.csv
char_usa_myallies_headalias.gsc
char_usa_myallies_helmalias.csv
char_usa_myallies_helmalias.gsc

and connected all this files how you talk me above
i translate all from english and create such how you write.

but now aitype (ally_us_reg_myallies.csv) need to connecting with my map, right?

I very much look forward to hearing from you.
really I want to check out how it will work. )


p.s. its funny, but file  about heads wrote 29 heads. wow))
I would like to connect helmet of medic for "helms" and radio model for "gears",
but I'm afraid that maybe they will spawn more than necessary)
eg on the map entirely unnecessary 2 medic or more than one radio operator
and I no used it.
Last Edit: January 29, 2017, 07:39:10 pm by artsergo
broken avatar :(
×
broken avatar :(
Location: kh
Date Registered: 9 August 2013
Last active: 5 years ago
Posts
503
Respect
Forum Rank
Zombie Enslaver
Primary Group
Member
×
codmoddd1234's Groups
codmoddd1234's Contact & Social Links
Add to zone_source/mapname.csv or mod.csv in launcher.
rawfile,character,your_new_char_name.gsc
Then in radiant you can select with right click
Actor..axis...ger...char_name.

Make backups because incorrect aitype and character files spawners can crash radiant.
broken avatar :(
×
broken avatar :(
Location: rusiberia
Date Registered: 3 January 2017
Last active: 7 years ago
Posts
78
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Goodluck for all !
×
artsergo's Groups
artsergo's Contact & Social Linksartsibsergeiartsergoartsergo
but i made aitype (gsc and csv file)  ::)
that this file may be don't  make? no need?
I think that all process with all files working over aitype and next go to files from code.

again. I made files:
1) aitype: ally_us_reg_myallies.csv and ally_us_reg_myallies.gsc
2) character: char_usa_myallies.csv  and  char_usa_myallies.gsc
3) xmodelalias:
char_usa_myallies_bodyalias.csv
char_usa_myallies_bodyalias.gsc
char_usa_myallies_gearalias.csv
char_usa_myallies_gearalias.gsc
char_usa_myallies_headalias.csv
char_usa_myallies_headalias.gsc
char_usa_myallies_helmalias.csv
char_usa_myallies_helmalias.gsc

and all this files connected to each other.   :)

Somewhere I heard that all these files are somehow to be applied to the Asset Manager. How can do it?
before this moment, I've never used this program.
and I don't know, how it make something in this Asset Manager.

say me please


Double Post Merge: January 30, 2017, 04:44:10 pm
Can anybody say me? above moment
Last Edit: January 30, 2017, 04:44:10 pm by artsergo
broken avatar :(
×
broken avatar :(
Location: kh
Date Registered: 9 August 2013
Last active: 5 years ago
Posts
503
Respect
Forum Rank
Zombie Enslaver
Primary Group
Member
×
codmoddd1234's Groups
codmoddd1234's Contact & Social Links
I don't think you need asset manager if you manually made the aitype and character files.
//
Add to zone_source/mapname.csv
Rawfile,character,char_usa_myallies.gsc
In radiant right click and select ... actor allies
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
I don't think you need asset manager if you manually made the aitype and character files.
//
Add to zone_source/mapname.csv
Rawfile,character,char_usa_myallies.gsc
In radiant right click and select ... actor allies

^ this

You dont need assetmanager, you did it by hand allready.
Just include the files in a .csv and you can place your new spawner in radiant by simply right-clicking and then actor-allies-..etc
broken avatar :(
×
broken avatar :(
Location: rusiberia
Date Registered: 3 January 2017
Last active: 7 years ago
Posts
78
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Goodluck for all !
×
artsergo's Groups
artsergo's Contact & Social Linksartsibsergeiartsergoartsergo
ok)))

Double Post Merge: January 30, 2017, 06:29:38 pm
ok. but my radiant no show me this is setting for actor
what next step?
Last Edit: January 30, 2017, 06:41:29 pm by artsergo
Marked as best answer by artsergo 7 years ago
broken avatar :(
×
broken avatar :(
Location: kh
Date Registered: 9 August 2013
Last active: 5 years ago
Posts
503
Respect
Forum Rank
Zombie Enslaver
Primary Group
Member
×
codmoddd1234's Groups
codmoddd1234's Contact & Social Links
You must have forgot to change one of the names somewhere.

https://www.mediafire.com/download/iy73hceoxsdixpb
These work.

In radiant
Actor ally us usmc artsergo
Last Edit: January 30, 2017, 06:49:28 pm by codmoddd1234
broken avatar :(
×
broken avatar :(
Location: rusiberia
Date Registered: 3 January 2017
Last active: 7 years ago
Posts
78
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Goodluck for all !
×
artsergo's Groups
artsergo's Contact & Social Linksartsibsergeiartsergoartsergo
but in aitype need - ally_us_usmc_<name> - "ally_us_usmc..."
but i write - ally_us_raid_reg_myallies.

i.e. only middle "usmc"?

Double Post Merge: January 30, 2017, 06:58:12 pm
well. ok. thanks for all)
Last Edit: January 30, 2017, 06:58:12 pm by artsergo

 
Loading ...