Author Topic: [OSP] Camel Kit! - Makes horses react to camels  (Read 15146 times)

0 Members and 1 Guest are viewing this topic.

Zarthas

  • Squire
  • *
    • View Profile
  • Faction: Vaegir
[OSP] Camel Kit! - Makes horses react to camels
« on: February 13, 2011, 06:08:16 PM »
Camel Kit!

I decided earlier that not enough mods use camels.  They're awesome.  Persians, Byzantines, and even the Romans used them, and they were very popular cavalry throughout Arabia.  Now, a few mods have chucked them in as a cool add-on, but I wanted to explore one of the most interesting aspects of camelry - Their effect on horses.

Code: [Select]
He gathered all the dromedaries from his army train, took off their burdens and set cavalry men upon them. Having thus furnished them, he ordered them to go in front of the rest of the army towards the horsemen of Croesus [...]. He did this because horses are afraid of dromedaries and can not endure to see or smell them.
[Herodotus of Halicarnassus, Histories 1.80]

It was apparently a big deal during the crusades as well.  And its still an issue for people who ride camels recreationally.  They're not really able to share horse-trails without making horses go berserk.

So, I wrote this kit.  It has some base Camel types, and everything you need to get horses to react to camels in battle.  Horses that are close to a camel will rear occasionally, disrupting any kind of charge action and stopping the rider.  The Riding skill reduces the likelihood that the horse will rear.

Add this to the very top of module_mission_templates :
Code: [Select]
from header_skills import *
from module_skills import *


  Add this bit to the top of module_mission_templates, above the check_belfy_movement one

Old version that scares all horses:
(click to show/hide)

Improved version that prevents allied horses from getting spooked, courtesy of Xaliber, with performance suggestions by Somebody.

(click to show/hide)

Then call horses_spook in every mission type you want this to happen in.  Obviously, it doesn't matter in sieges.

Then add these to module_constants somewhere:
Code: [Select]
camels_begin = "itm_pack_camel"
camels_end = "itm_arrows"

And here's the item types!
(click to show/hide)

Models:
Check out Xenoargh's OSP camel!
https://forums.taleworlds.com/index.php/topic,114455.msg2759125.html#msg2759125

Camel Pros and Cons
Camels are a bit hardier overall, less prone to breaking limbs, etc.  Hitpoints +
Camels are notoriously difficult to ride and train. Difficulty +
Camels are much taller than horses.  Scale +
Most Camels are much slower than horses over short distances.  Speed -
Even highly trained horses can't stand Camels.  Disruption Ability.

Overall, Camel Riders will fulfill a unique role as anti-cavalry cavalry.  Their effectiveness vs infantry would be limited, as they aren't capable of the shock charges that horses are.  However, mounted camel archers could be a very effective skirmishing force, disrupting both enemy infantry and cavalry.  The biggest threat to a camel rider would be enemy archers and persistent enemy horsemen.


On a side note, tell me this isn't awesome:
(click to show/hide)
« Last Edit: May 06, 2016, 05:27:24 PM by Zarthas »

Somebody

  • Code Pope
  • Baron
  • *
    • View Profile
  • Faction: Bandit
  • WBWF&S
Re: [OSP] Camel Kit! - Makes horses react to camels
« Reply #1 on: February 13, 2011, 06:19:55 PM »
Code: [Select]
(try_for_range,":camel",camels_begin,camels_end),
(eq,":horse_type",":camel"),#If this horse is a camel
This should be replaced with (is_between, ":horse_type", camels_begin, camels_end), and same with the next instance with (neg|is_between).

Zarthas

  • Squire
  • *
    • View Profile
  • Faction: Vaegir
Re: [OSP] Camel Kit! - Makes horses react to camels
« Reply #2 on: February 13, 2011, 06:26:55 PM »
That would be simpler  :D  My code is horribly ugly and offensive.  It gets the job done though.

Sayd Ûthman

  • Language Moderator
  • *
    • View Profile
  • Faction: Neutral
  • MP nick: Sayd_uthman
  • WB
Re: [OSP] Camel Kit! - Makes horses react to camels
« Reply #3 on: February 13, 2011, 06:29:17 PM »
Good job .but can this work in 1.011??

Zarthas

  • Squire
  • *
    • View Profile
  • Faction: Vaegir
Re: [OSP] Camel Kit! - Makes horses react to camels
« Reply #4 on: February 13, 2011, 06:31:12 PM »
No reason it wouldn't.  The only thing you'd have to take out of course is the scale part for the camel items.

FrisianDude

  • Coitus non Awesome
  • Archduke
  • *
  • Zis is Tshörman tärritorie!
    • View Profile
  • Faction: Neutral
  • MP nick: Liudulf Ward/Léodwulf
  • M&BWB
Re: [OSP] Camel Kit! - Makes horses react to camels
« Reply #5 on: February 13, 2011, 06:33:08 PM »
Holy hell Zarthas, that's great! :D My mod will certainly include camels and I had always considered it a bit of a shame they would be pretty much different looking horses.

Only ENEMY horses are affected by the camel-ness, right?
Nords ruled by King Ragnar, Khergits ruled by Sanjar Khan, Rhodoks ruled by King Graveth, Swadians ruled by King Harlaus, Vaegirs ruled by King Yaroglek. All those peoples live, fight, and die in the continent of Calradia. The Nords and Rhodoks field solely infantry and archers, the Swadians and Vaegirs have infantry, archers and cavalry and the Khergit field almost exclusively cavalry. No such things as "infarty" or "calvary" exist. Play Vikingr!

Sayd Ûthman

  • Language Moderator
  • *
    • View Profile
  • Faction: Neutral
  • MP nick: Sayd_uthman
  • WB
Re: [OSP] Camel Kit! - Makes horses react to camels
« Reply #6 on: February 13, 2011, 06:35:13 PM »
Holy hell Zarthas, that's great! :D My mod will certainly include camels and I had always considered it a bit of a shame they would be pretty much different looking horses.

Only ENEMY horses are affected by the camel-ness, right?

there is no horse scale in 1.011 i think..

Zarthas

  • Squire
  • *
    • View Profile
  • Faction: Vaegir
Re: [OSP] Camel Kit! - Makes horses react to camels
« Reply #7 on: February 13, 2011, 06:38:22 PM »
Negative  :twisted:  All horses hate camels.  I think I might code in a bit were ally horses can be a bit closer to them without freaking out, being accustomed to them and whatnot.

But yeah, you'd have to keep your Camelry and Cavalry seperate.  One of the main reasons people didn't use camel riders I think.

FrisianDude

  • Coitus non Awesome
  • Archduke
  • *
  • Zis is Tshörman tärritorie!
    • View Profile
  • Faction: Neutral
  • MP nick: Liudulf Ward/Léodwulf
  • M&BWB
Re: [OSP] Camel Kit! - Makes horses react to camels
« Reply #8 on: February 13, 2011, 06:40:56 PM »
Naw, I think horses from the same region as camels would be familiar enough with them not to be scared, no? :P Would be very convenient, mod-wise, if allied horses didn't mind their side's camels. :P
Nords ruled by King Ragnar, Khergits ruled by Sanjar Khan, Rhodoks ruled by King Graveth, Swadians ruled by King Harlaus, Vaegirs ruled by King Yaroglek. All those peoples live, fight, and die in the continent of Calradia. The Nords and Rhodoks field solely infantry and archers, the Swadians and Vaegirs have infantry, archers and cavalry and the Khergit field almost exclusively cavalry. No such things as "infarty" or "calvary" exist. Play Vikingr!

Einskaldir

  • Squire
  • *
  • Du Svardenvyrd
    • View Profile
  • Faction: Bandit
Re: [OSP] Camel Kit! - Makes horses react to camels
« Reply #9 on: February 13, 2011, 06:52:57 PM »
Nice, going to see if can fit this in the Hyborian Age!

Cheers!

P.S: Zarthas, you have a PM also, abut Dawn of Man stuff!

Artizan

  • Baron
  • *
    • View Profile
    • 3d Art Portfolio
  • Faction: Bandit
  • MP nick: WTF_Artizan
  • M&BWBWF&SNW
Re: [OSP] Camel Kit! - Makes horses react to camels
« Reply #10 on: February 13, 2011, 07:42:34 PM »
so where is the download link?

agrippa

  • Veteran
  • *
    • View Profile
  • Faction: Vaegir
  • MP nick: TScAgrippa
  • WB
Re: [OSP] Camel Kit! - Makes horses react to camels
« Reply #11 on: February 14, 2011, 10:11:20 AM »
Good!

Another note:
Putting
Code: [Select]
(get_distance_between_positions,":dist",pos1,pos2),#In CM
(le,":dist",3500),
right after
Code: [Select]
(try_for_agents,":enemy_horse"),saves a ton of time too

Sayd Ûthman

  • Language Moderator
  • *
    • View Profile
  • Faction: Neutral
  • MP nick: Sayd_uthman
  • WB
Re: [OSP] Camel Kit! - Makes horses react to camels
« Reply #12 on: March 27, 2011, 11:09:29 AM »
So any improvements, i'm waiting for a final version to use this in my mod :P

Ikaguia

  • Grandmaster Knight
  • *
  • Defender of the Potato cult.
    • Skype - Ikaguia
    • Steam - Ikaguia
    • Twitch.tv - Ikaguia
    • View Profile
  • Faction: Sarranid
  • MP nick: Ikaguia
  • WBWF&SNW
Re: [OSP] Camel Kit! - Makes horses react to camels
« Reply #13 on: March 27, 2011, 06:07:20 PM »
cool, may I add it my mod?

and, does this affect riderless horses to?

Sorry for my poor English, I'm Brazilian.

vota dc

  • Knight at Arms
  • *
    • View Profile
  • Faction: Nord
  • M&BWB
Re: [OSP] Camel Kit! - Makes horses react to camels
« Reply #14 on: April 03, 2012, 09:06:30 AM »
But it works?
Copying the code doesn't harm, but when I try to call the script it gaves me many errors. There is a reccomended place of the various "you lead your men" code where to put the call script? It is strange because is like I haven't initialised something despite the fact I put the code at the beginning and the call script in the various mission template. I also have problems with other script like regeneration, maybe it's just me that I don't know how and where call script properly.