Go Back   Savage 2: A Tortured Soul Forum > Savage 2 Modding

Notices

Savage 2 Modding Discussion of all things related to making mods of Savage 2

Reply
 
Thread Tools Display Modes
Old 08-16-2013, 11:20 PM   #271
Old55

Old55's Avatar
 
Join Date: Jun 2009
Posts: 2,586
Thanks: 14
Thanked 428 Times in 209 Posts
Default

Just remember you can't use anchors (@start) with that command.
__________________
Old55 is offline   Reply With Quote
The Following User Says Thank You to Old55 For This Useful Post:
Durwyn (08-16-2013)
Old 08-19-2013, 03:22 PM   #272
Durwyn

 
Join Date: Jul 2011
Location: Belgium
Posts: 264
Thanks: 47
Thanked 67 Times in 54 Posts
Default

- all PETs classes are working
- once the server is started, the mod will start.
- once the game is ended, the mod will wait to restart on the new map.
- placegadget is only triggered when PLAYERS places gadgets on the field, so it's not used and replaced by a proximity trigger to detect them for both players & pets
- a NPC proximity trigger to relocate the flying NPCs on the ground when spawned. (could be scrapped if eden is modified)
- PETs proximity triggers only lasts "50" GameTime (1000 = 1sec) on the field, just enough for them to trigger.


https://dl.dropboxusercontent.com/u/...ourcescc29.s2z

- Some crashes may occasionally happen, i'm still looking into this.

- some various scripts are yet to be done, but it won't hurt your gameplay.
__________________
Operating System: Windows 7 x64
Graphic card : Geforce GT 540M
RAM : 8gb
Savage2MapsAI
Durwyn is offline   Reply With Quote
The Following User Says Thank You to Durwyn For This Useful Post:
rohezal (08-20-2013)
Old 08-20-2013, 08:31 AM   #273
rohezal

rohezal's Avatar
 
Join Date: Mar 2008
Posts: 2,610
Thanks: 112
Thanked 136 Times in 106 Posts
Default

Quote:
- a NPC proximity trigger to relocate the flying NPCs on the ground when spawned. (could be scrapped if eden is modified)
Why do you need this? Will they not "fall" on the ground? And how do you place the trigger, so you know it is on the ground?
__________________

http://xs229.xs.to/xs229/08295/image_get.php939.jpeg

I love VOIP
sing: "base, base, base, base, base, base, base"

Why only 15 year old girls? Since 4 Years, damn I'm doing something wrong...

One day I will find out who is responsible for the K2 scripting "language" and the modding "support". And then...

rohezal is offline   Reply With Quote
Old 08-20-2013, 11:52 AM   #274
Durwyn

 
Join Date: Jul 2011
Location: Belgium
Posts: 264
Thanks: 47
Thanked 67 Times in 54 Posts
Default

it's only on Eden (so far), with two chiprels.

they are normally stuck up in the branches,
so PETs can't attack them,
so PETs keep waiting around the tree, to kill them (SetPetJobPatrol)

https://dl.dropboxusercontent.com/u/...3-43-01-66.jpg


Quote:
//detect new npcs
SpawnEntityAtEntity #GetScriptParam(spawnedindex)# Trigger_Proximity triggeronnpc 1 triggerradius 100000 triggerenter "set index #GetScriptParam(index)#;set posX #GetPosX(|#index|#)#; set posY #GetPosY(|#index|#)#;set posX [posX + 60];set posY [posY + 60];SetPosition #index# #posX# #posY# #GetTerrainHeight(|#posX|#,|#posY|#)#;SetToValidPo sition #index#"
__________________
Operating System: Windows 7 x64
Graphic card : Geforce GT 540M
RAM : 8gb
Savage2MapsAI
Durwyn is offline   Reply With Quote
Old 08-20-2013, 04:31 PM   #275
rohezal

rohezal's Avatar
 
Join Date: Mar 2008
Posts: 2,610
Thanks: 112
Thanked 136 Times in 106 Posts
Default

Oh yeah I understand
__________________

http://xs229.xs.to/xs229/08295/image_get.php939.jpeg

I love VOIP
sing: "base, base, base, base, base, base, base"

Why only 15 year old girls? Since 4 Years, damn I'm doing something wrong...

One day I will find out who is responsible for the K2 scripting "language" and the modding "support". And then...

rohezal is offline   Reply With Quote
Old 08-20-2013, 04:57 PM   #276
Old55

Old55's Avatar
 
Join Date: Jun 2009
Posts: 2,586
Thanks: 14
Thanked 428 Times in 209 Posts
Default

Do you need to have NPCs around? You could just have a script give the 'armageddon' command every once in a while.
__________________
Old55 is offline   Reply With Quote
Old 08-20-2013, 05:06 PM   #277
Durwyn

 
Join Date: Jul 2011
Location: Belgium
Posts: 264
Thanks: 47
Thanked 67 Times in 54 Posts
Default

i could remove the NPCs during maploading (and thus, they won't respawn), but i don't want to :3
__________________
Operating System: Windows 7 x64
Graphic card : Geforce GT 540M
RAM : 8gb
Savage2MapsAI
Durwyn is offline   Reply With Quote
Old 08-30-2013, 10:12 PM   #278
Durwyn

 
Join Date: Jul 2011
Location: Belgium
Posts: 264
Thanks: 47
Thanked 67 Times in 54 Posts
Default

i'm having troubles to send data to the client from the server. I think you have to use ClientExecScript but have no idea next.

I need the client to set this var "Building_SteamMine_number" to value 1 :3
__________________
Operating System: Windows 7 x64
Graphic card : Geforce GT 540M
RAM : 8gb
Savage2MapsAI
Durwyn is offline   Reply With Quote
Old 08-31-2013, 12:24 PM   #279
Old55

Old55's Avatar
 
Join Date: Jun 2009
Posts: 2,586
Thanks: 14
Thanked 428 Times in 209 Posts
Default

The simplest way (without adding new scripts to the map) is to use clientdo. That's why we added it!
__________________
Old55 is offline   Reply With Quote
The Following User Says Thank You to Old55 For This Useful Post:
Durwyn (08-31-2013)
Old 08-31-2013, 12:43 PM   #280
Durwyn

 
Join Date: Jul 2011
Location: Belgium
Posts: 264
Thanks: 47
Thanked 67 Times in 54 Posts
Default

Here is an example of ExecClientScript with clientdo

ClientExecScript 0 clientdo cmd "set Building_SteamMine_number 1"

with a IF
if [Building_SteamMine_number == 1] "ClientExecScript 0 clientdo cmd \"set Building_SteamMine_number 1\""
__________________
Operating System: Windows 7 x64
Graphic card : Geforce GT 540M
RAM : 8gb
Savage2MapsAI
Durwyn is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 12:15 PM.